- MySql Database
- Apollo Server+ TypeOrm
- NextJs + Apollo Client + React + Formik + Yup validation
- Eslint + Prettier
- graphql-codegen
- Run
docker-compose up - Open
http://localhost:3000/
Ports:
- 4000 - api
- 3000 - web
- 3306 - sql
- Set up database host, database name, port, user in
api/ormconfig.json - Use
yarn devfor development andyarn startfor production
- Set up api url in
web/.env - Use
yarn devfor development andyarn build && yarn startfor production - Open
http://localhost:3000/
There is graphql-codegen for preventing dummy coding of typings.
For generation on api yarn codegen
For generation on web, set up graphql url in web/codegen.yml and run yarn codegen .