The backend code for the RecipeProject. This is built using Node JS and is a part of a project in the Advanced JavaScript-course @ EC Utbildning.
This is accompanied by a frontend part that can be found here.
npm install
Then you need to set up a .env
-file at the root of your project in which you need 2 constants:
DB_URL = [YOUR-DATABASE-URL]
SECRET_OR_KEY = [YOUR-SECRET-KEY]
The seedUser.js
creates an admin user in order to access protected routes. Feel free to change the password.
npm run dev