Skip to content

dawidratynski/btp-project

Repository files navigation

Simple system for collecting stock quotes.


The server exposes a GraphQL API on port 3000 and database admin panel on port 5050. The database uses port 5432. Postgres and admin panel settings can be changed in .env file.


The API is described in the /src/schema.gql file.

When server is running in developement or watch mode you can experiment with the API in GraphQL playground (3000/graphql).


System data model is described in the data_model.pdf file.


Setting up the database

# setup postgres and admin panel containers
$ docker-compose up

# turn off postgres and admin containers
$ docker-compose down

# turn off only the admin panel
$ docker kill btp_project_pgadmin4_container

# remove the database (warning: you will lose all data inside)
$ docker-compose down --volumes

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests (note: for some tests the database container has to be running)
$ npm run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published