git clone [email protected]:UNIkeEN/SJMC-Landing-Page.gitThe frontend uses React, NextJS with Typescript. Please make sure you have node>=20.
cd frontend
npm installTo launch a development server, use
npm run devTo launch a production server, use
npm run build
npm run startThe backend uses the Python-based Django framework. Install the necessary package first.
cd backend
pip install -r requirements.txtTo initialize the database, please use
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser # Create admin userTo launch a development server, use
python manage.py runserverTo launch the production environment server, please use Gunicorn or another suitable server.
gunicorn sjmc_lp.asgi -k uvicorn.workers.UvicornWorkerIt 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