Skip to content

A website that displays several curry recipes for a registered user. The website uses Node.js express with JSON Web Tokens.

Notifications You must be signed in to change notification settings

tawanda-profuse/curry-recipe-website

Repository files navigation

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)

About

A website that displays several curry recipes for a registered user. The website uses Node.js express with JSON Web Tokens.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published