MessageDream / zftapi

api interface for ZFT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

电小鸽 后台 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

About

api interface for ZFT

License:Apache License 2.0


Languages

Language:JavaScript 98.9%Language:Shell 1.0%Language:Dockerfile 0.1%