Skip to content

lsvalina/travel_guide

Repository files navigation

Travel guide

Backend server for travel guide

Features

  • Retrieve route data from an external API.
  • Find the nearest routes based on provided coordinates.
  • Find points within a specified viewport.
  • Input validation for query parameters.
  • Error handling and JSON response for exceptions.

Build With

Express.js Jest Docker NodeJS Nix Direnv

Installation

Clone the repository:

 git clone https://github.com/lsvalina/travel_guide.git
 cd travel_guide

Install with nix

  • if you dont have nix configured follow nix installation guide here
  • run direnv allow to allow nix to work its magic
  • run __env_bootstrap to generate .env and .env.development with default values
  • run __install to set up project and install dependencies
  • run __run to run a project

Install with docker

  • install docker and docker compose
  • run cp .env.default .env.development; cp .env.default .env to set dotenv with default values
  • run docker compose up

Install with locally installed node

  • install node v20
  • run npm install to install dependencies
  • run npm run start:dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published