Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 2.22 KB

README.md

File metadata and controls

32 lines (22 loc) · 2.22 KB

Curry Recipe Website

An image of the UI

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

For more information about the following:

Installation Steps:

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.

  1. npm install
  2. npm run devStart
  3. Lastly, open your browser at the port specified in app.js (should be port 8080)