Skip to content

UniversityofHelsinki/compass-db

Repository files navigation

COMPASS-DB

This is a web service developed using Express.js.

Table of Contents

Getting Started

These instructions will get you started with a copy of the project on your local machine for development and testing purposes.

Prerequisites

You will need to have Node.js and npm installed on your machine.

Installation

After cloning the repository, navigate to the project directory and run: npm install

This will install all the necessary dependencies.

Usage

Create local postgres instance with command : docker run --name compassdb -p 5432:5432 -e POSTGRES_PASSWORD=xxxxxx -e POSTGRES_DB=xxxxxx -d postgres:16-alpine

Create .env file to the root of the project with these values:

PGUSER=postgres
PGPASSWORD=(your local postgres password)
PGPORT=5432
PGHOST=localhost
PGDATABASE=(your local postgres schema)

Run npm install

Start the service with node index.js

Run tests with command: npm run coverage

Deployment

Add additional notes about how to deploy this on a live system.

Contributing

If you're interested in contributing, feel free to send a pull request!

Versioning

Not specified.

License

This project is licensed under the MIT License

Acknowledgments

  • Acknowledge the works of others used/referred in the project.

About

Reflection Compass database service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages