This is a user authentication application using sessions and cookies as authentication.
- node 6.9.0
- npm 4.1.1
- express 4.14.1
- mongodb 3.2.10
- Pug 2.0.0-beta7
Further technologies and dependencies can be found in the package.json file.
- Clone (git bash recommended) or download the zip file onto your computer.
- Open folder in preferred text editor.
- Before running the application, open three terminals (on git bash or cmd prompt).
- In the first terminal, type mongod to access the host process for the database. If all goes well you should see zero errors. Usually what will sho win the last line will be an OK, connection 127.0.0.1, or running on port 27017.
- On the second terminal type mongo, it will be your command line shell. If no errors show, on the last line it will show connecting to: test, or simply test.
- On the third terminal type - nodemon app.
- If no errors show you are all set to go!
Further documentation on mongo shell commands can be found at https://docs.mongodb.com/manual/
On a later date we will be releasing a cheat sheet on mongo shell commands, stay tuned...
Note: follow steps 4 to 6 exactly to avoid any errors.
Feel free to use this application as part of a web project, however, if used in production, consider security when implememnting this code. For starters, always use HTTPs and consider modifying code to add even more authentication.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Developed for CreativeBitStudio by Danny Mack - Full Stack Developer.
- Developer Feedback or for Hire: [email protected].
- To contact or hire us: [email protected].
- Website: www.creativebitstudio.com