#todo-api-server A very basic API written for a Todo application I created for a coding challenge.
- Express (Server)
- Nodemon (Dev)
- Mongoose (DB/Schema)
- Morgan (Logging)
- Passport (Auth)
- bCrypt (Encrypt/Decrypt)
- JWT (Tokens)
You will need Node.js and MongoDB installed and running in your local environment.
-
Clone repo -
git clone https://github.com/jaspervalero/todo-api-server.git
-
Install dependencies -
npm install
(1st time only) -
Create 'config.js' file in root directory with the following code to start:
// Hold application secrets and config module.exports = { secret: '5lB8f4TF5CH5LeIK04te1I0UA1qTt7pw' };
Make sure to replace the secret's value with your own random secret string.
Visit http://randomkeygen.com to generate a random secret string.
-
Launch server -
npm run dev
-
Access via
http://localhost:3090/