ganesan-dev-sst (link)
Personal website source code
- Next.js Frontend with Server Actions React Component states
- Responsive Design with tailwind css and flowbite library
- AWS Dynamodb for blog, resume, project listing and S3 for files upload
- AWS Lambda with AWS Cognito authendication
- Deployed to AWS using CDK and SST to manage application settings.
Make sure you have installed all of the following prerequisites on your development machine:
- Git setup,
- Node.js,
- AWS Account with domain registed (and nameserver mapped)
- AWS CLI or Github actions setup for deployment
- Resend Key and NEXTAUTH_SECRET generated
To run a local development server, please ensure you have at least Node.js version 20 installed and added to your PATH.
-
Install dependencies
npm install
-
Run the SST development instance and wait for completion:
npx sst dev
-
Next, in a duplicate command window, run:
npm run dev
To deploy the application, ensure you have at least Node.js version 20 installed and added to your PATH. This step also requires the AWS CLI to be configured with sufficient IAM permissions.
-
Install dependencies:
npm install
-
Run SST deploy with stage prod:
npx sst deploy --stage prod
Remove app and all their resources from AWS
-
Remove entire app for the current stage:
npx sst remove
-
Remove it for a specific stage:
npx sst remove --stage dev