Skip to content

plezanje-net/api

Folders and files

NameName
Last commit message
Last commit date
Sep 7, 2024
Sep 17, 2022
Nov 7, 2024
Sep 13, 2024
Jan 23, 2021
Aug 21, 2022
Mar 13, 2022
May 22, 2022
Aug 17, 2020
Mar 25, 2022
Jul 17, 2023
Jul 31, 2022
May 22, 2022
Sep 13, 2020
Jan 21, 2024
Jan 21, 2024
Aug 17, 2020
Oct 2, 2022

Repository files navigation

Graphql API

Description

Graphql API from plezanje.net website written in NestJS.

Pre reqisites

Node.js and Docker Desktop.

Installation

# Install packages
$ npm install
# Install nest CLI (recommended)
$ npm install -g @nestjs/cli
# Start up docker container for PostgreSQL
$ docker-compose up -d
# Use the precreated database dump from the server
$ mkdir db
$ curl https://plezanje.net/storage/db.sql --output ./db/db.sql
$ docker exec -it api-postgres-1 bash -c  "psql -U plezanjenet -f /etc/db/db.sql"

Copy the .env.example file to .env and set configuration parameters.

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

This project is tested with BrowserStack.

About

NestJS GraphQL web server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published