SilviuAndreiChivescu / pizza-website

E-commerce pizzeria website
MIT License
8 stars 2 forks source link
auth0 expressjs javascript mongodb nodejs react-bootstrap reactjs

E-commerce Pizza Restaurant Website

NOT MAINTAINED ANYMORE

E-commerce website using MERN stack (Mongo, Express, React, Node).
I have built this App for a client from Romania. Please translate to English from browser when you go to my live App in order to see the products in English.

The back-end is in the root directory. 'index.js' is the main file, 'src' folder contains the source code of the API designed following the MVC(Model, View, Controller) design pattern.
The front-end is in the 'client' folder from the root directory.

Tech Stack

Features

Prerequisite

Additional dependencies

Dev dependencies

How to run local

Clone the repo

git clone git@github.com:SilviuAndreiChivescu/pizza-website.git

Create a copy of '.env.example' file from the root directory. Rename it to '.env', open it and replace the placeholder. Do the same in the client folder.

Install dependencies for server & client

npm install && npm run client-install

Start the server

npm run start

Open new terminal and start front-end

npm run client-start

Server runs on http://localhost:3001 and client on http://localhost:3000

Resources:

Auth0 - https://auth0.com/blog/complete-guide-to-react-user-authentication/

Mailjet - https://www.npmjs.com/package/node-mailjet

Deploy to Heroku - https://coursework.vschool.io/deploying-mern-app-to-heroku/

MongoDB Connection - https://youtu.be/wgGkF4k9c7A

License

This project is licensed under the MIT License