Based on David Tucker ps-serverless-app from his Pluralsight coures.
This implementation is using AWS SDK v3 and verified for Node v22.
- Node.js v22 or later
- Yarn package manager
-
Navigate to the webapp public directory:
cd webapp/public -
Create a
config.jsonfile by copying the sample configuration:cp config.sample.json config.json
-
Update the
config.jsonfile with your AWS settings:{ "api": { "endpoint": "https://your-api-endpoint.com" }, "auth": { "userPoolId": "region_XXXXXXXXX", "userPoolWebClientId": "your-client-id", "region": "your-region" } }
Run the following command to install required dependencies:
yarn installTo run the application locally in development mode:
yarn startThis will start the development server and open the application in your default browser.
To create a production build:
yarn buildThis will create an optimized production build in the dist directory.