This website displays several curry recipes for a registered user and does not allow a non-registered user to view the recipes available. This feature was implemented to ensure that users register to the platform using their email address.
Building this web site required HTML for the layout. Specifically, it was written with ejs for easier creation of templates. Using ejs also makes it easier to style web page elements with CSS. For handling client requests, JavaScript was used to develop application logic that querys the database using a the GET HTTP
method. That populates the UI with recipes. The database is a NoSQL database known as MongoDB Atlas - A JSON based database that stores data as documents in collections. User authentication is managed by a handler called JWT - JSON Web Token which handles sign in like cookies on common websites. This makes it easier to log in for already registered users. Essentially, the database has two collections, users and recipes
After cloning and extracting the zip file, open the folder with your editor of choice. Type the following commands in your local terminal where the folder is located.
- npm install
- npm run devStart
- Lastly, open your browser at the port specified in app.js (should be port 8080)