This repository has been created as a part of the YouTube video: Build a Realtime Web Chat and deploy to AWS - TypeScript, Node, React & TailwindCSS
It is a frontend part of a simple web chat application using API Gateway Webosockets with Serverless Framework Infrastructure as a Code to easily deploy it to AWS.
This project was bootstrapped with Create React App.
- AWS CLI installed and configured
serverless-framework
node.js
Run:
npm install
or
yarn install
In the project directory, you can run:
Runs the app in the development mode.
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.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Follow the instructions on the video to create and configure AWS S3 Bucket.
To synchronize changes with S3 bucket run:
npm run build && aws s3 sync ./build s3://your_bucket_name/
where your_bucket_name
is the name of the S3 bucket created and configured to serve content as static web server.
MIT.