Skip to content

Commit 659c612

Browse files
committed
user app is a go!
1 parent c545abf commit 659c612

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,38 @@ Prioritize the security and privacy of user data, implementing proper authentica
5050
- Backup and Sync:
5151
Implement data backup and synchronization features to prevent data loss and ensure tasks are accessible from multiple devices.
5252

53+
54+
# Getting Started
55+
To run the API locally, follow these steps:
56+
57+
1. Clone the repository: `git clone https://github.com/devsylva/TaskFlow-API.git`
58+
59+
2. Create a virtual environment inside the project directory: `python -m venv venv`
60+
61+
3. Activate the virtual environment: `source venv/bin/activate`
62+
63+
4. Install dependecies: `pip install -r requirements.txt`
64+
65+
5. Change `.env.templates` in the src/taskflow direct to `.env` and setup your environment variables
66+
67+
6. Setup the database: `python manage.py migrate`
68+
69+
7. Create a superuser account: `python manage.py createsuperuser`
70+
71+
8. Start the development server: `python manage.py runserver`
72+
73+
74+
# Running Tests
75+
Tests are organized into different files within the app's tests directory. Here's how to run them
76+
77+
1. To run all the tests, use the following command:
78+
79+
```
80+
python manage.py test
81+
```
82+
83+
2. To run a single test file, use the following command [replacing `<app_nam>` and `<test_file>` with the appropriate values]:
84+
85+
```
86+
python manage.py test <app_name>.tests.<test_file>
87+
```

0 commit comments

Comments
 (0)