esteThis repo is suspended.
WARNING: This project is outdated and not maintained anymore.
Este
- react
- react-native
- react-native-web
- nextjs
- zeit.co/now
- typescriptlang.org
- graphql.org
- relay
- prisma
- nexusjs
- apollo-server
Prerequisites
- nodejs.org 8 is required because of AWS. They don't support 10 yet.
- docker-compose
- yarnpkg.com
- prisma-cli
Setup project
git clone https://github.com/este/estecd esteyarnyarn docker:upyarn env devyarn prisma:deploy
Tasks
-
yarn devstart web development -
yarn dev-iosstart iOS development -
yarn dev-androidstart Android development -
yarn prisma:deployafterprisma/datamodel.prismachange -
yarn prisma:generategenerate Prisma client -
yarn prisma:deleteget rid of the whole service -
yarn genafterapi/schema.graphqlchange -
yarn env devcopy.env.devto.env -
yarn env prodcopy.env.prodto.env -
yarn buildlocal build -
yarn startlocal start -
yarn testbefore commit -
yarn depsrimraf 'yarn.lock' 'node_modules' '**/node_modules' && yarn -
nowdeploy to zeit.co/now
Tips
-
yarn dev, then open localhost:5000/playground and set HTTP HEADERS to{ "Authorization": "Bearer token" }. Token is browser cookie for api andyarn prisma tokenfor db. - After
prisma/docker-compose.ymlchange, runyarn docker:up - To deploy local Prisma to demo server, set up Prisma with demo database, and put its endpoint to .env.prod (copy paste of .env.dev), then
yarn env prod, thenyarn prisma:deploy.
Links
评论
