The ability to create, read, update and delete items in a web application is crucial to most full stack projects. For example, if we're creating a blog posting page, todo list or social media clone, without CRUD actions you'll get stuck very quickly. So we need to be aware that CRUD is too important to be ignored and also because learning this will really improve our confidence within unfamiliar stacks.
In order to understand a litte bit about this programming side, I did some researches and decided to create a Schedule Application with Node, Express and MongoDB.
If you want to run this application in your local, you should:
1) Install the dependencies:
npm install
2) Run the application:
npm run dev
3) After that, you should see the app running in the browser in
Local: http://localhost:8080
This app uses some environment variables, so to run this app successfully you must create a file named config.env and insided of it you must have:
PORT= ---:> The port you want your app to run
MONGO_URI= ---:> The MONGOOSE URL (use the documentation if necessary)
SESS_NAME= ---:> A name for your session
SESS_SECRET= ---:> A random password for your session
SESS_LIFETIME= ---:> The time in milliseconds for your session to expire, like 259200000 (3 days)