Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 843 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 843 Bytes

Prototype for creation apps quickly

Tech stack

  • MySql Database
  • Apollo Server+ TypeOrm
  • NextJs + Apollo Client + React + Formik + Yup validation
  • Eslint + Prettier
  • graphql-codegen

Docker

  • Run docker-compose up
  • Open http://localhost:3000/

Ports:

  • 4000 - api
  • 3000 - web
  • 3306 - sql

Manually

Api
  • Set up database host, database name, port, user in api/ormconfig.json
  • Use yarn dev for development and yarn start for production
Web
  • Set up api url in web/.env
  • Use yarn dev for development and yarn build && yarn start for production
  • Open http://localhost:3000/

Notes

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 .