Skip to content

pronitdas/ci-cd-nodejs-ts-lambda

Repository files navigation

ci-cd-nodejs-ts-lambda ⚙️

KISS (kept it stupidly simple) boilerplate for starting with nodejs and typescript and lambda

Project setup

Development Environment

$ npm install
# Install all project dependencies
# Get all environment variables to setup.

Compiles and hot-reloads for development

$ npm run dev
# This is primarily for Development. DO NOT USE IN PRODUCTION!

Production Deployment

Production deployment is done automatically by Github Actions and is driven by build-deploy.yml file.

Configuration Steps
  • S3 bucket. folder structure for environment files should be like this.
    • ${bucket_name}/${branch_name}/${branch_name}.json
  • Configure in github secrets bucket name SECRETS_BUCKET.
  • Configure in github secrets access credentials for aws. AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID.
  • Voila. Thats it. When you push to master/dev/stage/test. Code will be auto deployed.

Contributing

Note: Commits & PRs should now be allowed only if they follow a particular commit format, read more about it here

Please contribute using Github Flow. Create a branch, add commits, and open a pull request

About

KISS (kept it stupidly simple) boilerplate for starting with nodejs and typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published