git clone [email protected]:UNIkeEN/SJMC-Landing-Page.git
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
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