yarn install
- Start the NodeJS server:
yarn start
- Start webpack:
yarn dev
- Use
http://localhost:3000/
to access the app.
yarn install
yarn build
yarn start
RangerSteve.io can be automatically deployed using AWS services:
- The frontend is hosted on AWS Amplify Console (connected directly to GitHub)
- The backend runs on an EC2 instance in a private subnet
- An Application Load Balancer provides secure access to the backend
Run the backend deployment script:
./deploy-backend.sh
Once the deployment is complete, get the backend endpoint URL:
aws cloudformation describe-stacks --stack-name rangersteve-backend --query "Stacks[0].Outputs[?OutputKey=='BackendEndpoint'].OutputValue" --output text
- Log in to the AWS Management Console and navigate to AWS Amplify
- Click "New app" > "Host web app"
- Connect to your GitHub repository
- Use the default build settings or the provided amplify.yml
- Add the backend endpoint as an environment variable:
- Name:
BACKEND_URL
- Value: [The backend endpoint URL from step 1]
- Name:
- Click "Save and deploy"
For detailed deployment instructions, see DEPLOYMENT.md.
The application uses a secure architecture:
- Frontend static assets served by AWS Amplify
- Backend Node.js server running on EC2 in a private subnet
- Application Load Balancer providing secure access to the backend
- WebSocket connections securely proxied through the ALB