Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

tm-pe2/ad-api

Repository files navigation

ad-api

Requirements

Installation

npm install

Create a file .env in the project root:

DB_HOST=
DB_USER=
DB_PASSWORD=
DB_DATABASE=
DB_PORT=

MAILSERVER_U=
MAILSERVER_P=

JWTSECRET=SomethingYouCanPickYourselfButSecure:)

Create a file .env.test in the project root:

Same as above, but point DB_DATABASE to a separate test database (copy of the real database).

Running

npm run serve

Testing

npm run test

npm run test invoice

Please add a test at the end of src/__tests__/index.test.ts when adding new routes, there are plenty of examples already in the file to go from. Make sure describe() and it() are accurate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages