The website is developed using React.js and Node.js. Host by Nginx server on EC2: https://cnfinal.stadium.rdto.io
All requirements are satisfied including SSL issuance

Currently run on node.js v14.17.3. nvm is recommended to manage node versions. All dependencies are specified in the package.json file.
-
Install dependencies:
npm install. -
Use certbox to issue SSL certificate (optional):
https://certbot.eff.org/instructions?ws=other&os=ubuntufocal
-
You can also setup Nginx as a reverse proxy (optional):
See the config file
cnfinal.stadium.rdto.io -
For the message board service, run the json-server database:
npm install -g json-server json-server --watch db.json --port 3001 --host 0.0.0.0 #set --host so the service can be accessed from everywhere instead of only 127.0.0.1 when running on EC2The database is now running on http://localhost:3001.
-
For the audio/video streaming service, run the server:
node ./src/stream/server.js
The server is now running on http://localhost:8000.
-
Run the app either in
development mode:
PORT=5173 npm start
or
($env:PORT = "5173"); npm start
production mode:
npm run build
and serve the build folder using Nginx.
Now the webapp can be accessed in http://localhost:5173