My implementation of the famous Colt Steele's WebDev Bootcamp Project.
Yelp Camp is a fun application that allows you to view campgrounds with a short description. Once you login or signup you can begin to create your own campgrounds that includes a title, image address and short description.
YelpCamp is a more complex application built from scratch using the following technologies:
On the front-end I have used HTML5, CSS3, JavaScript, Bootstrap for responsive layout, and jQuery. On the back-end I used NodeJS, NPM, ExpressJS, REST, Authentication, Authorization and PassportJS. For datastore I used non-sql MongoDB. The application is hosted on Heroku servers and MongoDB Atlas.
For development, you will only need Node.js and MongoDB as the database.
-
Just go on official Node.js website and download the installer. Also, be sure to have
git
available in your PATH,npm
might need it (You can find git here). -
You can install nodejs and npm easily with apt install, just run the following commands.
$ sudo apt install nodejs $ sudo apt install npm
If the installation was successful, you should be able to run the following command.
$ node --version
v8.11.3
$ npm --version
6.1.0
If you need to update npm
, you can make it using npm
! Cool right? After running the following command, just open again the command line and be happy.
$ npm install npm -g
For this project you need to have MongoDB Community Edition installed and running. Having a local instance of MongoDB running on your system is the preferred option.
Alternatively, you can sign up for an account from a Database As A Service (DBAAS) provider like MongoDB Atlas or mlab. Both DBAAS providers offer a free tier with 500MB size limit that can be used for development and testing.
If you don't have MongoDB installed, please click on this link for instructions on how to install and run the Community Server and the mongo shell. Follow the instructions for your Operating System.
After MongoDB is installed, follow the instructions on the documentation to start the server. Then run the mongo shell from a separate terminal and execute the show dbs
command. If all goes well you should see a list of available databases, similar to the sample below.
> show dbs
admin 0.000GB
local 0.000GB
For development, you will only need Node.js and MongoDB as the database.
- Clone the repo
- Install dependencies:
npm install
- Start your mongoDB instance. This repo works on an instance running on
localhost:27017
on Testing Environment. - Start the application:
node app.js
- Open locally at http://localhost:3000/