Is What It Is
Daniel Steigerwald Daniel Steigerwald
Daniel Steigerwald and Daniel Steigerwald EditorData initial commit, fix BreadCrump content wrap
Latest commit 0eaad8b Sep 17, 2018
Permalink
Failed to load latest commit information.
.circleci Textedit (#1562) Jul 1, 2018
android Put back React Native Close #1477 Mar 14, 2018
browser Replace is-hotkey with browser/hotKey, deps Jul 31, 2018
client Simplify DB model, fix some edit bugs Aug 16, 2018
components EditorData initial commit, fix BreadCrump content wrap Sep 17, 2018
database Close #1580 Sep 11, 2018
flow-typed/npm React 16.5, React Native Web 0.9 Sep 17, 2018
ios React Native March Apr 4, 2018
lang EditorData initial commit, fix BreadCrump content wrap Sep 17, 2018
mutations Close #1580 Sep 11, 2018
pages Close #1580 Sep 11, 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 Close #1580 Sep 11, 2018
static Next (#1380) Aug 10, 2017
test/components April (#1522) May 7, 2018
themes EditorData initial commit, fix BreadCrump content wrap Sep 17, 2018
validations Simplify DB model, fix some edit bugs Aug 16, 2018
.babelrc Improve React Native Web integration Jul 18, 2018
.babelrc.native Revert "RNW 0.7.2, still not working" May 22, 2018
.babelrc.web Improve React Native Web integration Jul 18, 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 Refactor PostTextActions Jul 31, 2018
.flowconfig Flow 0.81 Sep 14, 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 Sep 16, 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 React 16.5, React Native Web 0.9 Sep 17, 2018
yarn.lock React 16.5, React Native Web 0.9 Sep 17, 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

Create Prisma Service

Option A - Prisma Server on Prisma.io

  • yarn prisma init YourAppName choose Demo server
  • set .env.dev PRISMA_ENDPOINT by YourAppName/prisma.yml endpoint
  • delete YourAppName directory

Option B - 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 - when yarn dev is running
  • yarn deploy:db
  • yarn deploy:api
  • yarn deploy:web
  • yarn messages
  • yarn prisma --help
  • yarn prisma reset to reset DB

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