Fullstack project based on this stack:
- React
- TypeScript
- GraphQL
- URQL/Apollo
- Node.js (with express)
- PostgreSQL
- MikroORM/TypeORM
- Redis
- Next.js
- TypeGraphQL
- Chakra
- Docker
Navigate to the server repository:
cd server
- Install dependencies
yarn
- Update js files in /dist folder
yarn run tsc -w
- Start server with nodemon (running on js)
yarn run dev
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
Navigate to the client repository:
cd client
- Install dependencies
yarn
- 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