- 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 dev
for development andyarn start
for production
- Set up api url in
web/.env
- Use
yarn dev
for development andyarn build && yarn start
for 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
.