For development, you will need Node.js and MongoDB installed on your environment.
To install Node, follow the official instructions for your OS here. You can also use a package manager if you prefer not to perform manual installation, instructions can be found here.
After installation, you should be able to run the commands below:
$ node --version
8.11.1
$ npm --version
5.6.0
MongoDB has easy to follow instructions for installation on your OS. Just like Node, you should be able to run this command after installation:
$ mongo --version
MongoDB shell version v3.6.4
git version: d0181a711f7e7f39e60b5aeb1dc7097bf6ae5856
OpenSSL version: OpenSSL 1.0.2o 27 Mar 2018
allocator: system
modules: none
build environment:
distarch: x86_64
target_arch: x86_64
Clone the repo and run npm install
on the directory to download all Node dependencies:
$ git clone https://github.com/YuanchengWu/yelp-camp.git
$ cd <PROJECT DIRECTORY>
$ npm install
Simply have Mongo Daemon running then start Node on app.js:
Open a terminal to run Mongo Daemon on project directory:
$ mongod
In another terminal session, run:
$ node app.js
Go to localhost:3000
in your browser to view the web app.
- EJS for some templating.
- Bootstrap 4 is used for UI.
- Just plain CSS
- MongoDB for account and content creation/management.
- Express framework for routing and middleware.
- body-parser for incoming request handling/parsing.
- mongoose for simplifying MongoDB development.
- flash to flash messages on pages.
- passport for user authentication.