Skip to content

SPA-Service is a single-page application built with Django and Vue.js, featuring real-time communication via Django Channels and WebSockets. The project is deployed on AWS with Nginx for serving the application efficiently.

Notifications You must be signed in to change notification settings

Unlie9/SPA-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPA-service

Description

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.
  1. Clone the repository:
    git clone https://github.com/Unlie9/SPA-service.git
    cd spa_service
  2. Create a virtual environment:
    python -m venv env
    source env/bin/activate
  3. Install dependencies:
    cd backend
    pip install -r requirements.txt

    Note: Dont forget for your .env files

  4. Run with Docker:
    cd spa_serivce
    docker-compose up --build

Endpoints

  • Admin: - /admin/
  • Register: - /register/
  • Login: - /login/
  • Comments Page: - /comments/

Db schema

Alt text

Demo

Alt text Alt text Alt text Alt text Alt text

About

SPA-Service is a single-page application built with Django and Vue.js, featuring real-time communication via Django Channels and WebSockets. The project is deployed on AWS with Nginx for serving the application efficiently.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published