Used during AI prompting recap for Gen AI integration
- Fork repo
- Clone into your computer
cdinto working directorynpm ito install dependencies- create a
.envfile with a variableMONGO_URIwith a value set to a valid Mongo URI, we suggest a free cluster on Mongo Atlas - The server defaults to port
8080, although an environment variablePORTcan be used to override this behaviour
npm run dev: Starts development server, pulling environment variables from.envfilenpm start: Production server, environment variables need to be passed to system.
- The application has its entry point at
index.js - There are 2 routes defined:
/entries/notes
- Each of the routes supports:
GET /<resource>: Get allPOST /<resource>: CreateGET /<resource>/:id: Get singlePUT /<resource>: Update singleDELETE /<resource>: Delete single