Skip to content

spotseeker/api

Repository files navigation

SpotSeeker

CI coverage Ruff Built with Cookiecutter Django

SpotSeeker is a mobile application designed for travelers to share their experiences through images, discover new places, share their location and recommendations with other travelers around the world.

Requirements

  • Python 3.11
  • Virtualenv 20.21
  • PostgreSQL

Steps

Create Python virtual environment:

virtualenv venv -p python3.11

Activate the virtual environment

source venv/bin/activate

Install the dependencies:

pip install -r requirements/local.txt

Install pre-commit hooks:

pre-commit install

Run the project:

python manage.py runserver

Run with Docker

You need to install Docker desktop in order to get all the packages to run docker container with compose. Then you need to create the network for the application with:

$ docker network create spotseeker-net

With the network created you must have to create a .env file follow the example .env.evample

Finally run the container:

$ docker compose up --build

Running tests with pytest

$ pytest

Test coverage

To run the tests, check your test coverage, and generate an HTML coverage report:

$ coverage run -m pytest
$ coverage html
$ open htmlcov/index.html

Type checks

Running type checks with mypy:

$ mypy spotseeker

Contributors

Languages