-
Create a
.env
file in project root. -
To this file, add the following,
##
## Environment variables
##
## Server port
PORT = 3000
## GitHub personal authentication token
AUTH_TOKEN =
## GitHub 'organization' name
OWNER =
## Phenoflow user details
USER_NAME =
USER_EMAIL =
- Complete 'Organization' configuration.
- Add the generated personal access token to
AUTH_TOKEN =
- Add the name of the created 'Organization' to personal access token to
OWNER =
- Add a name and email address to
USER_NAME =
USER_EMAIL =
accordingly, which identify the commiter.
- Visit https://github.com/settings/organizations.
- Create a new 'Organization'. The Free tier is sufficient.
- Visit https://github.com/settings/tokens.
- Generate a new Fine-grained Personal Access Token. - Select the created 'Organization' as the Resource owner. - Select All repositories under Repository access. - Select Read and write on all repository permissions under Permissions.
This is a Node.js server written with Express.js.
- Install dependencies:
npm install
- Run server:
node index.js
or...
nodemon
- At the root directory, run all tests:
npm test
The server runs by default on port 3000. Visit http://localhost:3000/[route] to test changes to GET endpoints and use software such as Postman to test changes to POST, PUT and DELETE endpoints.