Skip to content

Simple backend application written in node / express, mainly for writing API E2E tests with usage of Supertest library.

Notifications You must be signed in to change notification settings

MaBlaGit/facts-app-backend

Repository files navigation

Facts API backend

Description

Simple backend application written in node / express, mainly for writing API E2E tests with usage of Supertest library.

Prerequisites

To run app on the local environment, you will need:

  • node >= 18
  • pnpm
  • docker and docker-compose

Local setup

  • clone this repo
  • create .env from env-example file and set POSTGRES_USER and POSTGRES_PASSWORD
  • install all dependencies: pnpm install
  • create database: docker-compose up -d
  • seed DB by executing script: seed-db.sh
  • run the app by executing: pnpm start
  • run tests: pnpm test

OpenAPI documentation

API documentation you can find under /api-docs

Roadmap

  • add validations for each endpoint
  • cover it with tests

About

Simple backend application written in node / express, mainly for writing API E2E tests with usage of Supertest library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published