a special event management api, never miss a special event again or worry about remembering them
Repo razielapps/event_api, read from GitHub 2 h ago. razielapps has not joined Take My Repo.
razielapps/event_api is a public repo on GitHub by razielapps. a special event management api, never miss a special event again or worry about remembering them. It declares the MIT license on GitHub. It is written mainly in Python, has 1 stars and last changed on 2026-01-01. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-25.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
A comprehensive Django REST API for managing events and sending reminders via multiple channels. This API provides full CRUD operations for events, user management, and automated reminder system.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/register/ |
Register new user |
| POST | /api/auth/login/ |
Login user |
| POST | /api/auth/logout/ |
Logout user |
| POST | /api/auth/token/refresh/ |
Refresh JWT token |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/user/profile/ |
Get user profile |
| PUT | /api/user/profile/ |
Update user profile |
| PUT | /api/user/change-password/ |
Change password |
| GET | /api/user/preferences/ |
Get user preferences |
| PUT | /api/user/preferences/ |
Update user preferences |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/events/ |
List all user events |
| POST | /api/events/ |
Create new event |
| GET | /api/events/{id}/ |
Get event details |
| PUT | /api/events/{id}/ |
Update event |
| PATCH | /api/events/{id}/ |
Partial update event |
| DELETE | /api/events/{id}/ |
Delete event |
| GET | /api/events/upcoming/ |
Get upcoming events |
| GET | /api/events/today/ |
Get today's events |
| GET | /api/events/{id}/reminders/ |
Get event reminders |
| POST | /api/events/{id}/test-reminder/ |
Send test reminder |
| GET | /api/stats/ |
Get event statistics |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/health/ |
API health check |
# Clone repository
git clone https://github.com/razielapps/event_api
cd event-management-api
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
Create .env file in project root:
# Django Settings
SECRET_KEY=your-secret-key-here
DEBUG=False
ALLOWED_HOSTS=localhost,127.0.0.1,yourdomain.com
DATABASE_URL=postgres://user:password@localhost:5432/event_db
# JWT Settings (optional customizations)
JWT_ACCESS_LIFETIME=3600
JWT_REFRESH_LIFETIME=604800
# Email Settings (for email reminders)
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_HOST_USER=your-email@gmail.com
EMAIL_HOST_PASSWORD=your-app-password
DEFAULT_FROM_EMAIL=your-email@gmail.com
# Twilio Settings (for SMS/Phone reminders - optional)
TWILIO_ACCOUNT_SID=your-account-sid
TWILIO_AUTH_TOKEN=your-auth-token
TWILIO_PHONE_NUMBER=+1234567890
# Celery Settings
CELERY_BROKER_URL=redis://localhost:6379/0
CELERY_RESULT_BACKEND=redis://localhost:6379/0
# Security
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# Run migrations
python manage.py makemigrations
python manage.py migrate
# Create superuser (optional)
python manage.py createsuperuser
# Start Django development server
python manage.py runserver
# Start Celery worker (in separate terminal)
celery -A your_project_name worker --loglevel=info
# Start Celery beat for scheduled tasks (in separate terminal)
celery -A your_project_name beat --loglevel=info
curl -X POST http://localhost:8000/api/auth/register/ \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"username": "johndoe",
"password": "securepassword123",
"password2": "securepassword123",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+1234567890"
}'
curl -X POST http://localhost:8000/api/auth/login/ \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "securepassword123"
}'
curl -X POST http://localhost:8000/api/events/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Team Meeting",
"description": "Weekly team sync",
"date": "2024-12-25T10:00:00Z",
"location": "Conference Room A",
"comments": "Bring laptops",
"reminder_channels": ["email", "sms"],
"send_reminder": true
}'
# Get all events
curl -X GET http://localhost:8000/api/events/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
# Get events by status
curl -X GET "http://localhost:8000/api/events/?status=upcoming" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
# Search events
curl -X GET "http://localhost:8000/api/events/?search=meeting" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
# Date range filter
curl -X GET "http://localhost:8000/api/events/?start_date=2024-12-01&end_date=2024-12-31" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
curl -X PUT http://localhost:8000/api/user/preferences/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email_notifications": true,
"sms_notifications": false,
"call_notifications": true,
"reminder_lead_time": 60,
"timezone": "America/New_York"
}'
| Field | Type | Description |
|---|---|---|
| name | CharField | Event name (required) |
| description | TextField | Event description |
| date | DateTimeField | Event date/time (required) |
| location | CharField | Event location |
| comments | TextField | Additional comments |
| reminder_channels | JSONField | List of channels: ["email", "sms", "phone_call", "whatsapp", "push"] |
| send_reminder | BooleanField | Enable/disable reminders |
| status | CharField | Automatic: upcoming, ongoing, completed, cancelled |
| Parameter | Description | Example |
|---|---|---|
| status | Filter by status | ?status=upcoming |
| start_date | Events from date | ?start_date=2024-12-01 |
| end_date | Events until date | ?end_date=2024-12-31 |
| search | Search in name/description/comments | ?search=meeting |
| page | Pagination page number | ?page=2 |
Reminders are automatically sent based on:
curl -X POST http://localhost:8000/api/events/1/test-reminder/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
DEBUG=FalseALLOWED_HOSTS with your domainCreate docker-compose.yml:
version: '3.8'
services:
db:
image: postgres:13
environment:
POSTGRES_DB: event_db
POSTGRES_USER: event_user
POSTGRES_PASSWORD: event_password
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
web:
build: .
command: gunicorn your_project.wsgi:application --bind 0.0.0.0:8000
volumes:
- .:/app
ports:
- "8000:8000"
environment:
DATABASE_URL: postgres://event_user:event_password@db:5432/event_db
CELERY_BROKER_URL: redis://redis:6379/0
depends_on:
- db
- redis
celery:
build: .
command: celery -A your_project worker --loglevel=info
volumes:
- .:/app
depends_on:
- db
- redis
- web
celery-beat:
build: .
command: celery -A your_project beat --loglevel=info
volumes:
- .:/app
depends_on:
- db
- redis
- web
volumes:
postgres_data:
Database connection failed
.envCelery tasks not running
Emails not sending
JWT token expired
Check logs in:
python manage.py runserver outputAdd drf-yasg or drf-spectacular for automatic API documentation:
pip install drf-spectacular
Add to settings.py:
INSTALLED_APPS += ['drf_spectacular']
REST_FRAMEWORK = {
# ... existing settings ...
'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
}
Access documentation at /api/schema/ and /api/docs/
// api.js
import axios from 'axios';
const API = axios.create({
baseURL: 'http://localhost:8000/api',
});
// Request interceptor to add token
API.interceptors.request.use(config => {
const token = localStorage.getItem('token');
if (token) {
config.headers.Authorization = `Bearer ${token}`;
}
return config;
});
// Response interceptor to handle token refresh
API.interceptors.response.use(
response => response,
async error => {
const originalRequest = error.config;
if (error.response?.status === 401 && !originalRequest._retry) {
originalRequest._retry = true;
try {
const refreshToken = localStorage.getItem('refreshToken');
const response = await axios.post(
'http://localhost:8000/api/auth/token/refresh/',
{ refresh: refreshToken }
);
localStorage.setItem('token', response.data.access);
originalRequest.headers.Authorization = `Bearer ${response.data.access}`;
return API(originalRequest);
} catch (refreshError) {
// Redirect to login
window.location.href = '/login';
return Promise.reject(refreshError);
}
}
return Promise.reject(error);
}
);
export default API;
This project is licensed under the MIT License - see the LICENSE file for details.
razielapps/event_api is a public repo on GitHub by razielapps. a special event management api, never miss a special event again or worry about remembering them.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-01-01. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run event_api. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-01-01. It has 1 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.