npm i
to download node_modules- add
.env
file withDB_CONNECT
environment variable netlify dev
to run the netlify server
- I added back-end to the project
- I'm using serverless functions on Netlify to keep my secret API key hidden.
- I'm using mongoose in the serverless function to save the data in a mongoDB database.
DB_CONNECT=mongodb://localhost:27017/TasksDB