Skip to content

A music website featuring Python (Django) back-end with REST framework, PostgreSQL, and a front-end designed with HTML, CSS (Tailwind CSS), and JavaScript (ReactJS).

Notifications You must be signed in to change notification settings

duongtruongbinh/SpUStify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpUStify

Guide to Running the Source Code

This guide provides step-by-step instructions for teachers on how to set up and run the source code of the project. Please follow these instructions carefully to ensure a smooth setup process.

Prerequisites

Before you begin, make sure you have the following packages installed on your system:

  • django
  • django-cors-headers
  • psycopg2
  • djangorestframework
  • Pillow
  • django-rest-knox

If you haven't already installed these packages, you can use pip to install them:

pip install django django-cors-headers psycopg2 django-rest-knox djangorestframework Pillow knox

Getting Started

  1. Navigate to the project directory:
cd ./src/SpUStify/
  1. Activate the virtual environment (if available):

Backend Setup

To set up the back-end of the project, you will need to have PostgreSQL installed and running on your system. If you don't have PostgreSQL installed, you can download and install it from PostgreSQL Official Website.

  1. Create a database named "SPUSTIFY" in PostgreSQL (pgAdmin4 application).

Open the ./src/SpUStify/SpUStify/settings.py file in the SpUStify directory and change the password in line 112 to match your PostgreSQL (pgAdmin4) password.

  1. Navigate to the backend directory:
cd ./src/SpUStify/
  1. Run the following command to create the database migrations:
python manage.py makemigrations
  1. Run the following command to create the database tables:
python manage.py migrate
  1. Run the following command to create a superuser:
python manage.py createsuperuser
  1. Run the following command to start the back-end server:
python manage.py runserver

This command will launch the back-end server and make your project accessible through a web browser.

Frontend Setup

To set up the front-end of the project, you will need Node.js installed:

  1. Install Node.js: If you don't have Node.js installed, you can download and install it from Node.js Official Website.
  2. Navigate to the frontend directory:
cd ./src/FE/FEspUStify/
  1. Install the required dependencies
npm install
  1. Run the front-end server
npm run dev

This command will launch the front-end server and make your project accessible through a web browser.

About

A music website featuring Python (Django) back-end with REST framework, PostgreSQL, and a front-end designed with HTML, CSS (Tailwind CSS), and JavaScript (ReactJS).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •