SPA-Service is a full-stack single-page application (SPA) designed to provide a smooth, real-time user experience by leveraging modern web technologies. This project demonstrates the integration of a modern SPA frontend with a powerful Django backend, utilizing real-time capabilities and cloud infrastructure to deliver a production-ready solution.
- Django: backend framework, offering a robust and scalable architecture for server-side logic.
- Django REST Framework: to create a flexible and powerful API.
- Vue.js: for a reactive and dynamic front-end experience, ensuring a smooth and responsive user interface.
- JWT authentication: for secure and efficient user login functionality with access and refresh.
- WebSockets: from Django Channels to enable real-time, bidirectional communication, powering features such as live updates without the need for page reloads.
- PostgreSQL: as the primary database for storing application data.
- Redis: for channel layer binding in WebSockets, ensuring efficient real-time message distribution.
- Docker: for containerized , ensuring easy scalability and consistent development environments.
- Deploy: AWS hosts the application for cloud-based deployment, while Nginx serves as the reverse proxy to efficiently handle static files and requests.
- Sorting: for sorting by fields as date, Email, Username.
- Ordering: for ordering by ascending and descending.
- Clone the repository:
git clone https://github.com/Unlie9/SPA-service.git cd spa_service
- Create a virtual environment:
python -m venv env source env/bin/activate
- Install dependencies:
cd backend pip install -r requirements.txt
Note: Dont forget for your .env files
- Run with Docker:
cd spa_serivce docker-compose up --build
- Admin: -
/admin/
- Register: -
/register/
- Login: -
/login/
- Comments Page: -
/comments/