Skip to content

nicolebeechler/mern-project

Repository files navigation

Origami Grill

This repository contains the code for a full-stack MERN project that is conditionally rendered based on the user state.

  • Server-side ----> PORT:8000
  • Client-side ----> PORT:3000

Live Project Link: origamigrill.nicolebeechler.me

About:

A simple e-commerce website.

  • A user can log in or sign up.
  • After logging in, a user can order items from the menu or view previous orders.

Origami Grill

API Endpoints:

Items:

  1. GET /api/items
  2. GET /api/items/:id

Orders:

  1. GET /cart
  2. GET /api/orders/history
  3. POST /api/orders/cart/items/:id

Users:

  1. POST /api/users
  2. POST /api/users/login
  3. GET /api/users/check-token (middleware: ensureLoggedIn)

Downloading/Cloning:

Set up your environment:

  1. Clone this repository.
$ [email protected]:nicolebeechler/mern-project.git
  1. Install Gulp and Nodemon globally
$ npm i -g gulp-cli
$ npm i -g nodemon
  1. Include your SHA256 SECRET hash and MONGO_URI in your .env file at the root level
  2. Install the dependencies
$ npm i
  1. Upload the seed.js data file to your database
$ node config/seed.js

Technologies Used:

Deployment:

  • DigitalOcean - Cloud Server
  • Nginx - Web Server
  • Certbot - SSL Certificate
  • PM2 - Process manager for Node.js
  • NameCheap - Domain

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published