An example serverless app created with SST.
Install the example.
git clone https://github.com/SonuKumar81800/AWS_Backend.gitcd AWS_Backendnpm install || yarn installInstall and Configure AWS cli
- Download AWS Cli too from AWS Official
- Install it in your local system.
- Once your local environment is ready, head over to the AppSync console and get your access key id and secret here.
Open Terminal and follow these steps.
aws configureAWS Access Key ID: <your_access_key_id>AWS Secret Access Key: <your_access_key_secret>Default region name: <select_your_region>Default output format: jsonStart the Live Lambda Development environment.
$ npm sst startThese Key Value you need to add to .env file
MONGO_USERNAME=<env_value>
MONGO_PASSWORD=<env_value>
DATABASE_NAME=<env_value>
DATABASE=<env_value>
GRAPHQL_API_URL=<env_value>
GRAPHQL_API_KEY=<env_value>Starts the local Lambda development environment.
Build your app and synthesize your stacks.
Generates a .build/ directory with the compiled files and a .build/cdk.out/ directory with the synthesized CloudFormation stacks.
Deploy all your stacks to AWS. Or optionally deploy a specific stack.
Remove all your stacks and all of their resources from AWS. Or optionally remove a specific stack.
Runs your tests using Jest. Takes all the Jest CLI options.
Learn more about SST.