https://github.com/flow-build/test-server
Server that encapsulates testing features for flowbuild.
https://github.com/flow-build/test-server
Last synced: 4 days ago
JSON representation
Server that encapsulates testing features for flowbuild.
- Host: GitHub
- URL: https://github.com/flow-build/test-server
- Owner: flow-build
- License: mit
- Created: 2022-09-07T20:31:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-12T15:41:15.000Z (over 3 years ago)
- Last Synced: 2025-04-19T19:57:33.622Z (about 1 year ago)
- Language: JavaScript
- Size: 2.68 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-server
Server that encapsulates testing features for flowbuild.
## Environment variables
Add a .env file with the following variables:
- KNEX_ENV (suggested value = docker)
- NODE_ENV (suggested value = docker)
- POSTGRES_USER (default = postgres)
- POSTGRES_PASSWORD (default = postgres)
- POSTGRES_DB (default = tests)
- POSTGRES_HOST (default = localhost)
- POSTGRES_PORT (default = 5433)
- LOG_LEVEL (default = info)
- FLOWBUILD_URL
## Run the project on docker
To run app on docker, just run the command:
```
docker-compose up
```
Make sure ports 8080 and 5433 are free to use on your localhost.
## Tests
You can run tests by running:
```
npm run test
```
Note: some tests will fail if you don't have the database running or poiting to
some flowubuild server as well.
## Swagger
When the app is running along with the database (and poiting to some flowbuild
server) you can access the following swagger to check out the API routes and test
them yourself:
http://localhost:8080/swagger