Skip to content

The application allows you to choose a store and order burgers in it. Get information about pre-orders. It is possible to use coupons for a discount. The basic information is stored in the database.

Notifications You must be signed in to change notification settings

vlasiuk-anatolii/delivery-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Delivery App

View Video Demo

Table Of Contents

About The Project

Screen Shot

The Delivery App consists four basic pages:

  • Home Page
  • Cart Page
  • History Page
  • Coupons Page

On the Home page users can choose a shop, then add goods to the cart (data will be gotten from the database).

Screen Shot

On the Cart Page the user can check all added products, change the count.

Screen Shot

And add an email, a phone number, and an address (in inputs). The order will be saved in the database after the user clicks the “submit” button, which will appear after verification captcha. Also, the user can apply coupons on discount.

Users can order products only from one shop. For example, if the user chooses McDonald's, the cart will be cleared, and so on.

Users can choose their address using a marker on the map. The user should grab the marker and move it in a place which is needed and let it go. The needed address will appear in an appropriate input field.

When the user choosed products and opened Cart Page, initially the marker places in a point, which has coordinates of choosed shop.

Screen Shot

The App shows route from shop to user’s address and approximately time (in hours) of delivering.

Screen Shot Screen Shot

Users can find their orders on History Page.

Screen Shot

Users can see all coupons (coupons will be used for discounts, users can apply them on the shopping cart page)

Screen Shot

One coupon the user can use one time!

Built With

The application has 3 parts:

  • Client
  • Server
  • Database

Client Client was created by using:

Languages, Frameworks and Tools:

aws bash css3 git html5 javascript nodejs postman react redux sass typescript webpack tailwindcss

Server Server was created by using:

Languages, Frameworks and Tools:

aws bash express git javascript linux nodejs postgresql postman

Database DataBase was created by using:

Languages, Frameworks and Tools:

aws javascript linux nodejs postgresql

Getting Started

To get a local copy up and running follow these simple example steps.

Installation Client

  1. Clone the repo
git clone https://github.com/vlasiuk-anatolii/delivery-app
  1. Go to frontend folder
cd frontend
  1. Install NPM packages
npm install
  1. Type in the terminal
npm start
  1. After that, client will start on http://localhost:3000

Installation Server

  1. If cloned repo: https://github.com/vlasiuk-anatolii/delivery-app

  2. Go to backend folder

cd backend
  1. Install NPM packages
npm install
  1. Type in the terminal
npm start
  1. After that, you should see:

Screen Shot

  1. It means, that your server is started.

Installation DataBase

  1. File for restore db db.sql exists in the folder db which you will get when cloned repo https://github.com/vlasiuk-anatolii/delivery-app

  2. Install on your computer PostgreSQL.

  3. Creat empty database with name Products.

  4. You should used utility of PostgreSQL such as pg_restore and restore data base with specified name.

  5. Restored database must consists 3 tables: 'shops', 'products', 'orders'.

Screen Shot

  1. If you reached this, it means that your have done all steps well.

You can use system!

Features of development

Flash The server interacts with database through ORM "Sequelize". Sequelize escapes replacements, which avoids the problem SQL injection attacks.

Flash The server was implemented by using MVC architectural pattern.

Flash In accordance with the policy of CORS was used cors node.js package.

Deployment

Was choosed a place for deploy - AWS. Was created instance on EC2 service. All elements of project were migrated from Windows platform to Ubuntu

Author

About

The application allows you to choose a store and order burgers in it. Get information about pre-orders. It is possible to use coupons for a discount. The basic information is stored in the database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published