Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

chrisbull/este

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,029 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, then restart yarn dev
  • 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

About

Is What It Is

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.9%
  • Objective-C 1.7%
  • Other 1.4%