The Task Creation App allows users to create tasks, assign them to users, and mark tasks as completed. The app is built with Django and Django REST Framework.
To get started with the Task Creation App, follow the instructions below to set up the project locally.
- Python 3.x
- Node.js and npm
- PostgreSQL or MySQL (optional, if you prefer not to use SQLite)
-
Clone the repository:
git clone https://github.com/ezeisraeljohn/task_creation.git cd task_creation
-
Set up a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Install Node.js dependencies:
npm install
-
Build Tailwind CSS:
Ensure you have npx installed (it comes with npm). Then run:
npx tailwindcss -i ./task_creation_app/static/src/input.css -o ./task_creation_app/static/src/output.css
-
Configure the database:
Ensure you have a PostgreSQL or MySQL database set up. Update the database settings in the
task_creation/settings.py
file.DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'dbname', 'USER': 'username', 'PASSWORD': 'password', 'HOST': 'localhost', 'PORT': '5432', } }
If none is available, you can still use the default SQLite database.
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3', } }
-
Apply the migrations:
python manage.py makemigrations python manage.py migrate
create a superuser(if you want to access the admin page)
python manage.py createsuperuser
and follow the prompts to create a superuser.
-
Run the server:
python manage.py runserver
Once the server is running, you can interact with the application's dashboard using the link http://127.0.0.1:8000/dashboard/
To run the tests, use the following command:
python manage.py test