Backend server for travel guide |
- 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.
Clone the repository:
git clone https://github.com/lsvalina/travel_guide.git
cd travel_guide
- 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 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 node v20
- run
npm install
to install dependencies - run
npm run start:dev