indapublic / core

Backend for Trip Trip project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trip Trip Core

Backend for Trip Trip project

Development

  1. Start PostgreSQL
  2. Start Redis
  3. copy .env.dist to .env
  4. Fill config to .env file
    • DB_HOST, DB_PASSWORD, DB_PORT=5432,DB_USER,DB_NAME` — config for PostgreSQL
    • REDIS_HOST, REDIS_PORT, REDIS_USER, REDIS_PASSWORD — config for Redis
  5. Initialize DB by yarn evolutions -i
  6. Sync DB-scheme by yarn evolutions
  7. Start dev-server by yarn dev
  8. Server runs on localhost:3000

Production

Release to Trip-Trip infrastructure

  1. Push all code for release to master
  2. Create release by yarn release
  3. Push code and tag by git push --follow-tags
  4. CircleCI roll out release

About

Backend for Trip Trip project


Languages

Language:TypeScript 97.6%Language:JavaScript 2.2%Language:Dockerfile 0.3%