Skip to content

Latest commit

 

History

History
85 lines (60 loc) · 1.1 KB

README.md

File metadata and controls

85 lines (60 loc) · 1.1 KB

project logo

Fullstack project based on this stack:

  • React
  • TypeScript
  • GraphQL
  • URQL/Apollo
  • Node.js (with express)
  • PostgreSQL
  • MikroORM/TypeORM
  • Redis
  • Next.js
  • TypeGraphQL
  • Chakra
  • Docker

Server

Navigate to the server repository:

cd server
  1. Install dependencies
yarn
  1. Update js files in /dist folder
yarn run tsc -w
  1. Start server with nodemon (running on js)
yarn run dev

Run local postgres database and redis for development

Setup an .env (used for dev environment) file in the server folder with these variables set:

POSTGRES_PASSWORD
POSTGRES_USER
POSTGRES_DB
JWT_SECRET

After this you can run:

docker-compose -f dev.docker-compose.yml up -d

Client

Navigate to the client repository:

cd client
  1. Install dependencies
yarn
  1. Start next.js client
yarn next dev

Setup an .env (used for dev environment) file in the client folder with these variables set:

API_URL