Skip to content
ervin-khamoidoPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neo-bank/api

Environment

  1. Install Doppler and authenticate: https://docs.doppler.com/docs/cli#installation

    • Go look at inctructions in doppler.yaml.example
  2. Create server.sh file:

G_CREDS=$(doppler secrets get GOOGLE_APPLICATION_CREDENTIALS --plain)

doppler secrets get GOOGLE_APPLICATION_CREDENTIALS_JSON --plain > $G_CREDS
doppler run --command="npm run dev"
  1. Run sh server.sh in bash.

Tests

To run the tests you have to set up a test database.

  1. In the db project add your configurations in .env file e.g.
TEST_POSTGRES_USER=postgres
TEST_POSTGRES_PASSWORD=1234
TEST_MIGRATIONS_HOST=localhost
TEST_MIGRATIONS_PORT=5432
  1. Run a command in the db project to create a test database neo-bank-test:
npm run test:db:create
  1. To drop the test database neo-bank-test use:
npm run test:db:drop
  1. Run a command in the db project to run all migrations:
npm run test:up

When database is created, create test.sh script using test.sample.sh as template and set environment variables.

To run all tests use:

sh test.sh

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages