------------------ ----------------- -------------------
| SyncPod-server | | SyncPod-BFF | | SyncPod-web-app |
| | RESTful | | | |
| | API | | GraphQL | |
| | <------ | | <-------- | |
| Rails | | Node | | React |
| | | | Query | |
| | JSON | | Response | |
| | ------> | | --------> | |
| | | | | |
------------------ ----------------- -------------------
- Install
git clone [email protected]:cyder/SyncPod-BFF.git
cd SyncPod-BFF
yarn install
- Start-up server
yarn start
- View GraphQL playground
open http://localhost:4000/graphql
The schema is published automatically when the master branch is merged. So, don't publish schema from local to apollo platform. However, if there is a bottleneck according to the implementation of BFF, you can directory push schema from local to apollo.
cp .env.sample .env
vim .env # Set ENGINE_API_KEY
yarn serve:dev
yarn publish:schema
COMMING SOON...