Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

orangesys/app.orangesys.io

Repository files navigation

Development

CircleCI Codacy Badge dependencies Status

install nvm & node

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
nvm install 8.4.0
nvm alias default 8.4.0
npm install yarn -g
export PATH=$(npm bin):$PATH

Config

cp .env-sample .env

Change api key with .env

# edit .env
NODE_ENV=development
FIREBASE_API_KEY=XXXXXXXXXXXXXXXXXXXXX
FIREBASE_AUTH_DOMAIN=orangesys-21d3f.firebaseapp.com
FIREBASE_DATABASE_URL=https://orangesys-21d3f.firebaseio.com
FIREBASE_STORAGE_BUCKET=orangesys-21d3f.appspot.com
PAYMENT_API_ENDPOINT=https://PAYMENT_API_ENDPOINT
ORANGESYS_API_ENDPOINT=https://ORANGESYS_API_ENDPOINT
SENTRY_DSN=https://[email protected]/YYYYYYY
HOST=0.0.0.0

Install

yarn

Test

npm test

Create a Firebase project

For more information, see https://console.firebase.google.com

Login with ci use token

firebase login:ci

Update database rules

firebase deploy --project "$FIREBASE_PROJECT" --token "$FIREBASE_TOKEN" --non-interactive --only database

Start in deployment

npm run dev