chore(docs): updated README.md

This commit is contained in:
sankalp committed 2025-12-11 22:17:17 +05:45
1 parent 54df9af013
commit 7b565e4aa7
1 file changed
+67 -67
+67 -67
View File
@@ -1,111 +1,111 @@
# . # DevSuite
A Django project folder structure generated with [djinitx/djinit/dj](https://github.com/S4NKALP/djinit). DevSuite is a comprehensive management system designed for developers and agencies to streamline client management, project tracking, finance, and productivity.
## Features ## Features
- Modern project structure with environment-specific settings - **Client Management**: Track clients, contact details, and unique short codes.
- Pre-configured REST API with JWT authentication - **Project Management**: Manage projects, milestones, and tasks with deadlines.
- Essential dependencies and utilities - **Service Management**: Track recurring services (domains, hosting) and their expiry dates.
- Production-ready configuration - **Finance**: Generate invoices, track payments, and manage expenses.
- **Productivity**: Log time entries and track duration for projects.
- **Automated Notifications**: Email alerts for deadlines, due dates, and service expirations.
## Modules
The project is organized into the following core modules in `src/models/`:
- **Clients** (`clients.py`): `Client` model.
- **Projects** (`projects.py`): `Project`, `Milestone`, `Task` models.
- **Services** (`services.py`): `Service`, `Credential` models.
- **Finance** (`finance.py`): `Invoice`, `Payment`, `Expense` models.
- **Productivity** (`productivity.py`): `TimeEntry`, `Note` models.
- **Notifications** (`notifications.py`): `Notification` model and sending logic.
## Setup ## Setup
### Using Just (Recommended) ### Prerequisites
- Python 3.10+
- `just` (optional, for command shortcuts)
1. Set environment variables in `.env` file ### Installation
2. Run setup (installs dependencies, runs migrations, creates superuser): #### Using Just (Recommended)
1. **Clone the repository**:
```bash
git clone <repository-url>
cd devsuite
```
2. **Configure Environment**:
Copy `.env.sample` to `.env` and update the values:
```bash
cp .env.sample .env
```
3. **Run Setup**:
This installs dependencies, runs migrations, and creates a superuser.
```bash ```bash
just setup just setup
``` ```
3. Start development server: 4. **Run Server**:
```bash ```bash
just dev just dev
``` ```
### Traditional Method #### Traditional Method
1. Install dependencies:
1. **Install dependencies**:
```bash ```bash
pip install -r requirements.txt pip install -r requirements.txt
``` ```
2. Set environment variables in `.env` file 2. **Configure Environment**:
Copy `.env.sample` to `.env` and update the values:
3. Run migrations:
```bash ```bash
python manage.py migrate cp .env.sample .env
``` ```
4. Create superuser: 3. **Initialize Database**:
```bash ```bash
python manage.py migrate
python manage.py createsuperuser python manage.py createsuperuser
``` ```
5. Start development server: 4. **Run Server**:
```bash ```bash
python manage.py runserver python manage.py runserver
``` ```
## Available Commands ## Notifications
Run `just` to see all available commands, including: DevSuite includes an automated email notification system.
- `just dev` - Run development server - **Triggers**: Project deadlines, Milestone due dates, Service expiry, Invoice due dates.
- `just migrate` - Run migrations - **Command**: `python manage.py send_notifications`
- `just makemigrations` - Create migrations - **Automation**: Use `scripts/run_notifications.sh` in a cron job.
- `just createsuperuser` - Create superuser
- `just test` - Run tests
- `just lint` - Lint code
- `just format` - Format code
- `just shell` - Django shell
- `just clean` - Clean cache files
## Project Structure For detailed documentation, see [notifi.md](notifi.md).
``` ## Testing
./
├── src/
│ ├── settings/
│ │ ├── base.py
│ │ ├── development.py
│ │ └── production.py
│ ├── admin/
│ ├── api/ # API endpoints organized by model
│ │ ├── user/ # Example: if you have a User model
│ │ │ ├── views.py
│ │ │ ├── serializers.py
│ │ │ └── urls.py
│ │ └── urls.py
│ ├── models/ # Django models
│ ├── tests/
│ ├── urls.py
│ ├── wsgi.py
│ └── asgi.py
├── manage.py
├── requirements.txt
├── pyproject.toml
├── .env.sample
└── README.md
**Note:** For the single folder layout, organize your API endpoints by model name under the `api/` directory. Run the full test suite with:
For example, if you have a `User` model in `models/user.py`, create:
- `api/user/views.py` - API views for User
- `api/user/serializers.py` - Serializers for User
- `api/user/urls.py` - URL patterns for User endpoints
See the README files in `api/` and `models/` directories for more details. ```bash
python manage.py test
``` ```
## API Documentation For detailed testing documentation, see [testing.md](testing.md).
When running in development mode, API documentation is available at: ## Management Commands
- Swagger UI: http://localhost:8000/docs/ - `send_notifications`: Checks for upcoming events and sends emails.
- Schema: http://localhost:8000/schema/ ```bash
python manage.py send_notifications
```
## Admin Interface
Access the Django admin at `http://localhost:8000/admin/` to manage all records.