Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

samharju/PWP

 
 

Repository files navigation

codecov CI

PWP SPRING 2021

Lines API

Group information

Remember to include all required documentation and HOWTOs, including how to create and populate the database, how to run and test the API, the url to the entrypoint and instructions on how to setup and run the client

Application installation

These instructions were made for Ubuntu 20.04 running Python 3.9.

  1. Create a virtual environment (optional)

    python -m venv venv
    source venv/bin/activate
  2. Install dependencies.

    ./install.sh
  3. Initialize database or apply new migrations

    ./migrate.sh
  4. Run only database tests

    pytest -v -m models
  5. Run all tests and check code syntax

    ./test.sh
  6. Start application

    ./run.sh
  7. Find api entrypoint with a client of your choice

    http://localhost:8000/api/

Web Client

See https://github.com/Stugeh/LinesClient

Admin site

Create a superuser with

python manage.py createsuperuser

Access admin site via http://localhost:8000/admin

Apidocs

Once server is up and running, check the self-hosted docs at http://localhost:8000/docs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.4%
  • HTML 1.1%
  • Shell 0.5%