Skip to content

DenisYakovlev/e-commerce-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple shop app

Webapp with cart, user/admin menu, item search and purchase.

Technologies used

Ruby on rails, React, Bootstrap, Postgresql, Docker, Docker-compose, Nginx;

Installation

Before you begin, ensure than you have the following installed:

  • Git
  • Docker
  • Docker Compose

Setting Up the Application

Clone the Repository

git clone https://github.com/DenisYakovlev/e-commerce-shop.git 

Enviroment variables

In backend directory create .env.prod file and put your values:

  • PORT - port of application, use 8000 to match nginx config
  • POSTGRES_USERNAME - database user
  • POSTGRES_PASSWORD - database password
  • POSTGRES_HOST - database host, use db to match nginx config
  • POSTGRES_PORT - database port, use 5432 to match nginx config
  • JWT_SECRET - secret key for encoding/decoding jwt tokens

In frontend directory create .env.prod file and put your values:

  • REACT_APP_API_BASE_URL - url of backend server, must be app_url/api/ to match nginx config

Also, go to nginx/nginx.conf if you want to change basic config for proxy server of your application.

Launching

You can run production build from root directory with:

docker-compose -f docker-compose.yml up --build

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published