Skip to content

SJMC 社团迎新 / 介绍页(首次使用于 2024 上海交通大学录取通知书)

License

Notifications You must be signed in to change notification settings

SJMC-Dev/SJMC-Landing-Page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SJMC Landing Page

Clone

git clone [email protected]:UNIkeEN/SJMC-Landing-Page.git

Frontend

The frontend uses React, NextJS with Typescript. Please make sure you have node>=20.

cd frontend
npm install

To launch a development server, use

npm run dev

To launch a production server, use

npm run build
npm run start

Backend

The backend uses the Python-based Django framework. Install the necessary package first.

cd backend
pip install -r requirements.txt

To initialize the database, please use

python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser # Create admin user

To launch a development server, use

python manage.py runserver

To launch the production environment server, please use Gunicorn or another suitable server.

gunicorn sjmc_lp.asgi -k uvicorn.workers.UvicornWorker

It should be noted that the backend also has static pages that need to be built for the production environment (i.e., the admin page).

# First set STATIC_ROOT in Django settings.py
python manage.py collectstatic

About

SJMC 社团迎新 / 介绍页(首次使用于 2024 上海交通大学录取通知书)

Resources

License

Stars

Watchers

Forks