Skip to content

denakol/next-js-apollo-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ddab57b · Aug 31, 2020

History

27 Commits
Aug 31, 2020
Aug 31, 2020
Aug 27, 2020
Aug 31, 2020
Aug 31, 2020

Repository files navigation

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 .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published