This is a back-end node express web application. It has a fully working login/signup, password hashing, persistent storage, and 5 views. I created this while learning to build node.js server applications.
I used the following to create a node server with full authentication capabilities and persistent storage.
- Passport - for sign-up/ log-in and oath.
- EJS – templating language for rendering view to html.
- ExpressJS - as the server framework.
- MongoDB - This is the data base used for persistent storage and currently stores login credentials.
#####Linux
- Node.js - Download and Install Node.js, NodeSchool has free node tutorials to get you started.
- MongoDB - Download and Install mongodb - Checkout their manual if you’re just starting.
- Git - Linux install or general download
#####Windows
- Node.js - Download and Install Node.js, NodeSchool has free node tutorials to get you started.
- MongoDB - Download and Install mongodb - Install on Windows step by step walk through.
- Git - Win install download
#####Mac OSX
- Node.js - Download and Install Node.js, NodeSchool has free node tutorials to get you started.
- MongoDB - Download and Install mongodb - Install on Mac step by step walk through.
- Git - Mac install download
npm install -g bower
If any prerequisites where missed please add it to the GitHub issues...
make sure node.js is installed on your system then run the following commands
Install all local node dependencies
npm install
bower install
MongoDB needs to be running before you start the node server.
Do the following in the command line interface to Run MongoDB
<MONGO_INSTALL_DIRECTORY>/bin/mongod --dbpath <PATH_TO_DB_DIRECTORY>
For example, if you installed your MongoDB in the following location: C:\Program Files\MongoDB\Server\3.2\bin and you want your data base information stored in this location: C:\data\db then you would enter the following into the command line.
C:/Program Files/MongoDB/Server/3.2/bin/mongod --dbpath C:/data/db
####Start the Node Server and view in Web Page in Browser.
On MacOS or Linux
DEBUG=myapp:* npm start
On Windows
set DEBUG=myapp:* & npm start
Then load http://localhost:3000/ in your browser to access the app.