Skip to content

MichailShcherbakov/caps-pizza

Repository files navigation

πŸ•Caps Pizza

Ci Status Coverage Status GitHub

🎨 Preview

πŸš€ Quick Start

  1. Create in the root directory a file .env by sample .env.example
HOST=your_host_name

API_SECRET=your_frontpad_secret_key

JWT_ACCESS_TOKEN_SECRET=any_random_secret_key
JWT_REFRESH_TOKEN_SECRET=any_random_secret_key

DATABASE_NAME=db_name
DATABASE_USERNAME=db_username
DATABASE_PASSWORD=db_password
  1. Next, run the following command:
docker compose --file docker-compose.prod.yml up

πŸ”‘ Secrets

Secrets Discription Example
SSH_USER Username of ssh connection root
SSH_PORT SSH port 22
SSH_PRIVATE_KEY Private Key from Key pair of your server -----BEGIN RSA PRIVATE KEY...
ANSIBLE_BECOME_USER Username of ansible become admin
ANSIBLE_BECOME_PASSWORD Password of ansible become admin
DOCKER_HUB_USERNAME Username of your Dockerhub account docker
DOCKER_HUB_ACCESS_TOKEN Password of your Dockerhub account docker
HOST Host your server my.great.site.com | 57.57.57.57
API_SECRET Your frontpad secret key 4gd6f54g6df4g...
JWT_ACCESS_TOKEN_SECRET JWT secret gdf46g5d4f6...
JWT_REFRESH_TOKEN_SECRET JWT secret gdf46g5d4f6...
DATABASE_NAME Database name db_name
DATABASE_USERNAME Database username db_username
DATABASE_PASSWORD Database password db_password

βš’ Stack

API

  • NestJS
  • Typeorm
  • PostgreSQL

Web

  • NextJS
  • Redux Toolkit (RTK Query)
  • Material Design
  • Formik

πŸ‘¨πŸ»β€πŸ’» Author