Skip to content

xiniria/air-monitoring-backend

Repository files navigation

Air Monitoring PWA project — backend

Installation

$ npm install

Database setup

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.

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

You can run all tests with npm run test. For a more thorough explanation, head to docs/tests.md.

About

Backend for the Air Monitoring PWA project.

Resources

Stars

Watchers

Forks

Packages

No packages published