mirror of https://github.com/xfarrow/blink
Update README.md
This commit is contained in:
parent
d9e79be200
commit
b5d3cf1536
|
@ -1,5 +1,18 @@
|
||||||
# APIs
|
# APIs
|
||||||
|
|
||||||
To start APIs, run `node ./nodejs/src/app.js `
|
## Programming language
|
||||||
|
The Blink APIs are currently written in NodeJS only.
|
||||||
|
|
||||||
Open `BlinkApiUsageExample.json` with Insomnia to see APIs in action.
|
## Prerequisites
|
||||||
|
* PostgreSQL;
|
||||||
|
* NodeJS.
|
||||||
|
|
||||||
|
## Deploying
|
||||||
|
In order to deploy the Blink APIs, follow these steps:
|
||||||
|
* Configure the `.env` file in `./nodejs/src/`.
|
||||||
|
* Run `node ./nodejs/src/app.js`
|
||||||
|
|
||||||
|
## Testing the APIs
|
||||||
|
You can test the APIs in two ways:
|
||||||
|
* Open `BlinkApiUsageExample.json` with Insomnia or Bruno in order to have the collection of APIs already configured and ready to be seen in action;
|
||||||
|
* Run `npm test` in `./nodejs` to run a suite of automated tests.
|
||||||
|
|
Loading…
Reference in New Issue