Skip to content

GustavoLeonhard/gleonhard-todo-challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ToDo List Challenge

This project provides a ToDo List Challenge Django application.

Installation

Choose one of the following installation methods:

Docker

  1. Build the Docker image:

    docker build -t todo_challenge .
    
  2. Run the container, exposing port 8000 for the application:

    docker run -p 8000:8000 todo_challenge
    

Local Environment

  1. Create a virtual environment:

    python3 -m venv venv
    
  2. Activate the virtual environment:

    source venv/bin/activate
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Navigate to the project's root directory

  5. To run the application:

    create a super user:

    python3 manage.py createsuperuser
    
  6. run migrations:

    python3 manage.py makemigrations
    
    ```bash
    python3 manage.py migrate
    
  7. run the server:

    python3 manage.py runserver
    

Swagger Documentation

View the interactive API documentation at http://127.0.0.1:8000/docs/

Testing with Postman You can run all Postman test cases at this link (desktop version is better than online version): https://www.postman.com/gustavo-starwars/workspace/todo-challenge/collection/15918898-6c79a7e3-edd8-4bb3-aefe-9101b256dbb3?action=share&creator=15918898

Running Unit and Integration tests

  1. Local Environment:
    python3 manage.py test
    
  2. Docker:
    docker exec -it <container_id_or_name> python manage.py test
    

Note: When testing your endpoints with Postman, please ensure to use the correct URL http://127.0.0.1:8000/ for local environment or http://localhost:8000/ if using Docker, as the base URL for your requests.

About

ToDo Challenge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.3%
  • CSS 27.7%
  • Python 5.3%
  • Other 0.7%