Prerequisite: Redis, PostgreSQL
cd reddit-clone-api
-> rename .ormconfig.json -> ormconfig.json and fill in the credentials accordingly
-> rename .env.example -> .env and fill in the credentials accordingly
yarn
yarn dev
Prerequisite: Docker
cd reddit-clone-api
docker-compose-up
cd reddit-clone-web
yarn
yarn dev
You can add more GraphQL Queries/Mutations inside reddit-clone-web/src/graphql/**
directory. Afterwards, run command yarn gen
to generate the typing for the queries/mutations.
cd reddit-clone-web
yarn
yarn build