- Hub: GitHub Actions
- Framework: NodeJS
- Language: Javascript
- Backend: Express
- Package Updates: npm-check-updates
- Linting: ESLint
- Deployment AWS EC2
- Install NodeJS/NPM
- Install packages
- Run
npm install
in the repo root directory
- Run
- Install Docker
- Install tools
- Run
npm install -g npm-check-updates
for dependencies checker
- Run
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This runs ESLint for the files in the src/
directory containing the React app and the server/
directory containing the API server.
Start the API server with npm run start
. This starts the backend server at http://localhost:3000.
- Open http://localhost:3000 to view it in the browser.
- The page will reload if you make edits. You will also see any lint errors in the console.
- Build server for deployment
- run
npm run preserver
- run
- Build react app
- run
npm run build
- run
- View existing docker images
- run
docker ps
- run
- Build docker image:
- run
docker build -t ljx02263/ediss-a1:latest
- or unique name
ljx02263/<unique tag>
- run
- Run docker image:
- run
docker run -p 80:3000 ljx02263/ediss-a1:latest
- run
- Stop docker image:
- run
docker ps
to find the ID of the container you want to stop - run
docker stop <container id>
to stop the container
- run