This is the front-end for the capstone course of the edX Software Development MicroMasters program. The portal enables students to self-enroll in the capstone project, provision their repositories, manage their team, monitor their progress, and self-advance through the deliverables.
The frontend requires the backend sdmm-portal-backend service be running.
-
Initial configuration:
- Create a localhost key:
- Simple instructions.
- Copy
server.keyandserver.crtinto<project-root>/ssl/.
- Create a config file:
- Copy
sample.envinto<project-root>/.envand fill in all fields. Make sure the.envfile is never committed to version control.
- Copy
- Create a localhost key:
-
Active development:
- Run two processes:
webpack --watchnode -r dotenv/config src/server/FrontEndServer.js
- Run two processes:
- Install
certbot(https://certbot.eff.org/) - Generate a
localhostcertificate for development.sudo certbot certonly- Choose option 2 (
temporary webserver)
Follow the certbot instructions.
# Enable epel-release repo
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
# Install certbot
yum install certbot
# Generate cert
certbot certonly --standalone -d sdmm.cs.ubc.ca
# TODO Set renewal as cron/systemd job. It also needs to copy the new certs to /home/w-sdmm/sdmm-portal
certbot renew
cp $(readlink -f /etc/letsencrypt/live/sdmm.cs.ubc.ca/fullchain.pem) /home/w-sdmm/autotest/ssl/fullchain.pem
cp $(readlink -f /etc/letsencrypt/live/sdmm.cs.ubc.ca/privkey.pem) /home/w-sdmm/autotest/ssl/privkey.pem
chown -R w-sdmm:w-sdmm /home/w-sdmm/autotest/ssl