/zftapi

api interface for ZFT

Primary LanguageJavaScriptApache License 2.0Apache-2.0

电小鸽 后台 Build Status

Development Environment

prepare environment variables:

export ALI_KEY=key export ALI_SECRET=secret

docker-compose

docker-compose up --build api

will start up a dev environment on localhost:8000,

it uses nodemon for reloading the environment.

working with web-zft

Make sure you have ZFT_BACKEND_PROXY properly set for web-zft, this will override its default mock proxy.

export ZFT_BACKEND_PROXY=http://localhost:8000

Then start web-zft by running:

npm run dev

refresh db schema

use

docker-compose down && docker-compose up --build

after changing database schema every time.

database schema stores here: db/init.sql

Deployment

travis CI

Aliyun

dockerhub