$ npm install
The DBMS we use is PostgreSQL, version 13.1. You can download it here. Once this is done, follow the installation instructions and launch a Postgres server with:
$ postgres
You can also use an app to manage the server, such as pgAdmin or
Postgres.app (only on macOS). Then, connect to your server with the psql
client:
$ psql
You can now type in SQL queries or
psql
-specific commands, such as \l
to list all
databases or \c
to change the current database, for example. Create a new database called
air_monitoring
with:
CREATE DATABASE "air_monitoring";
You can check that is has been created by displaying the list of databases (\l
) and connect to it with
\c air_monitoring
. Head to docs/database.md
to finish setting up your local
database.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
You can run all tests with npm run test
. For a more thorough explanation, head to
docs/tests.md
.