This api is based off of Strapi.
These instructions will get you up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
This software requires the following to be insalled:
- MongoDB >= 3.6
- Node.js >= 12.x
- npm >= 6.x
- yarn >= 1.22.4
Copy the .env.example
file to .env
and add the database information.
Variable definitions
HOST
Where the API server will runPORT
Port for the API serverURL
Url that will be used to access the apiDATABASE_HOST
- localhostDATABASE_SRV
- false for local devDATABASE_SSL
- false for local devDATABASE_PORT
- 27017 for local devDATABASE_NAME
- the name of the database "dataarc"DATABASE_USERNAME
- database usernameDATABASE_PASSWORD
- database passwordAUTHENTICATION_DATABASE
- maybe 'admin' or blank depending on mongodb instanceADMIN_JWT_SECRET
Token to secure the admin login for strapi
Install node packages
yarn install
Build
yarn build
Or if it's built already, use:
yarn start
For development use:
yarn develop
After everything is up and running, you will have access to the GRAPHQL playground where you can view the docs, schema, and test queries. You will also be able to do the same with the swagger documentation interface for the REST api.