- Python (3.x recommended)
- Django
- Django REST Framework
- Virtual environment (optional but recommended)
- Clone the repository:
- git clone <repository_url>
- cd employment_contracts
- Set up a virtual environment (optional but recommended):
- python -m venv venv
- source venv/bin/activate
- Install dependencies:
- pip install -r requirements.txt
Using postgresql database
- python manage.py makemigrations
- python manage.py migrate
- python manage.py runserver
- create a new user in order to get authorization token to access the api endpoints
- access each endpoint by adding Authorization to your header "Bearer your_token"
- List/Create: /api/organisations/
- Retrieve: /api/organisations/
- Add user to organisation: /api/organisations//users/
- Retrieve user: /api/users/
- Signup: /auth/register/
- Login: /auth/login/
- python manage.py test