This project is a Django REST Framework (DRF) API for managing FAQs (Frequently Asked Questions). It includes:
- A REST API for fetching FAQs.
- Django Admin Panel for managing FAQs.
- Redis for request handling and caching.
- Dockerized Setup for easy deployment.
- Backend: Django, Django REST Framework
- Database: PostgreSQL / SQLite
- Cache: Redis
- Containerization: Docker, Docker Compose
- Retrieve FAQs via API.
- Admin Panel for managing FAQs.
- Redis integration for request handling.
$ git clone https://github.com/iamlearner1/code-submission.git
$ cd faq_project$ python3 -m venv venv
$ source venv/bin/activate # On Mac/Linux
$ venv\Scripts\activate # On Windows$ pip install -r requirements.txt$ python manage.py migrate$ python manage.py createsuperuser$ python manage.py runserverNow, visit http://127.0.0.1:8000/admin/ to log in and add FAQs.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/faq/ |
Retrieve all FAQs |
You can use Postman or any API testing tool to fetch FAQs.
$ docker build -t mydjangoapp .$ docker-compose upNow, visit http://127.0.0.1:8000/ to access the project.
Ensure Redis is running before starting the project. If not installed, install Redis:
$ sudo apt install redis-server # Linux
$ brew install redis # macOSStart Redis:
$ redis-serverFor production, set up Gunicorn and NGINX or use cloud platforms like AWS, Heroku, or DigitalOcean.
This project demonstrates:
✅ API Development with Django & DRF
✅ Efficient Request Handling with Redis
✅ Containerization using Docker
✅ Admin Panel for Managing Data
I have knowledge of Django, but this is my first complete project using it. I also know how to build APIs using Spring Boot, JPA, TypeScript, and GraphQL. While learning Django REST Framework (DRF), I found it extremely useful and fast for creating REST APIs. I look forward to learning more and enhancing my skills further.
I am very interested in this opportunity and believe it will help me grow as a developer. You can check out my GitHub profile for more projects: GitHub Profile.
I want to be transparent with you—I used ChatGPT to assist me in completing this project. However, I fully understand the code and can explain it without AI assistance. I believe AI helps improve code efficiency and reduces development time, but I am confident in my ability to complete projects independently as well.
Hope you find this project useful! 🚀