Daniel Steigerwald Daniel Steigerwald
Daniel Steigerwald and Daniel Steigerwald Delete validations/index.js
Latest commit c67157f Nov 20, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Textedit (#1562) Jul 1, 2018
android Put back React Native Close #1477 Mar 14, 2018
browser Redesign editor (#1604) Nov 3, 2018
client Editor setTextStyle Nov 15, 2018
components Remove unused HOCs, add useAppError Nov 20, 2018
database Add cascade deletes for Web Nov 19, 2018
flow-typed/npm Deps Nov 20, 2018
hooks Remove unused HOCs, add useAppError Nov 20, 2018
ios React Native March Apr 4, 2018
lang Editor menu styles, remove nextStyle Nov 7, 2018
mutations Hookize DeleteWeb Nov 19, 2018
pages Remove unused HOCs, add useAppError Nov 20, 2018
screens Move validations into validations/index.mjs Jun 25, 2018
scripts Use flow-remove-types instead of Babel for Node.js Jul 23, 2018
server Remove unused HOCs, add useAppError Nov 20, 2018
static Next (#1380) Aug 10, 2017
test/components April (#1522) May 7, 2018
themes Editor menu styles, remove nextStyle Nov 7, 2018
validate Hookize WebName Nov 19, 2018
.babelrc close #1527, close #1578 Sep 26, 2018
.babelrc.native Next 7, close #1540 Sep 26, 2018
.babelrc.web close #1527, close #1578 Sep 26, 2018
.buckconfig Put back React Native Close #1477 Mar 14, 2018
.editorconfig Next (#1380) Aug 10, 2017
.env.dev Add docker-compose for dev environment (#1575) Aug 7, 2018
.eslintignore Editor, first step (#1550) Jun 14, 2018
.eslintrc.js Add brand new useMutation hook, validate, refactor Auth, fix eslint Nov 18, 2018
.flowconfig Redesign editor (#1604) Nov 3, 2018
.gitattributes Put back React Native Close #1477 Mar 14, 2018
.gitignore Put back React Native Close #1477 Mar 14, 2018
.graphqlconfig.yml Namming things Jun 15, 2018
.prettierignore Always use explicit names Jun 17, 2018
.prettierrc Add .prettierrc Jan 12, 2018
.watchmanconfig Put back React Native Close #1477 Mar 14, 2018
LICENSE Next (#1380) Aug 10, 2017
README.md Update README.md Nov 14, 2018
app.json Put back React Native Close #1477 Mar 14, 2018
index.js screens App.js Mar 14, 2018
jest.config.js Fix build Jul 28, 2018
next.config.js Replace .mjs with esm to enable minimal Node.js Babel transpilation t… Jul 18, 2018
nodemon.api.json Use flow-remove-types instead of Babel for Node.js Jul 23, 2018
nodemon.web.json Use flow-remove-types instead of Babel for Node.js Jul 23, 2018
package.json Deps Nov 20, 2018
yarn.lock Deps Nov 20, 2018

README.md

CircleCI Dependency Status

Universal React. React + React Native.

Prerequisites

Setup project

  • git clone https://github.com/este/este.git este
  • cd este
  • yarn

Setup Prisma server with Docker Compose [requires docker-compose]

  • yarn docker:up -- this will spin up a docker instance of Postgres and Prisma server at http://localhost:4466
  • yarn docker:down -- stop docker-compose servers

Deploy dev Prisma

  • yarn env dev
  • yarn deploy:db
  • yarn prisma token generate token
  • yarn playground Set database HTTP HEADERS to { "Authorization": "Bearer token" }

Dev tasks

  • yarn dev - start web development
  • yarn dev:ios
  • yarn dev:android
  • yarn env dev - copy .env.dev to .env
  • yarn env production - copy .env.production to .env
  • yarn production - test production build locally
  • yarn test
  • yarn codegen - after deploy, run yarn dev, then yarn codegen in another tab
  • yarn deploy:db
  • yarn deploy:api
  • yarn deploy:web
  • yarn messages
  • yarn prisma --help
  • yarn prisma reset wipes the data and keeps the schema
  • yarn prisma delete get rid of the whole service

Add production Prisma

  • The same as Create Prisma, but use production name, .env.production file, and yarn env production.

Deploy

  • yarn deploy:db,
  • yarn deploy:api, use now generated URL for API_ENDPOINT in .env.production
  • yarn deploy:web

Links