Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.78 KB

File metadata and controls

62 lines (43 loc) · 1.78 KB

Final Project

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 alt text

Getting Started

Currently run on node.js v14.17.3. nvm is recommended to manage node versions. All dependencies are specified in the package.json file.

Installation and Setup Instructions

  1. Install dependencies: npm install.

  2. Use certbox to issue SSL certificate (optional):

    https://certbot.eff.org/instructions?ws=other&os=ubuntufocal

  3. You can also setup Nginx as a reverse proxy (optional):

    See the config file cnfinal.stadium.rdto.io

  4. 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 EC2

    The database is now running on http://localhost:3001.

  5. For the audio/video streaming service, run the server:

    node ./src/stream/server.js

    The server is now running on http://localhost:8000.

  6. 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

References