hmmhmmhm / serverless-ts-template

Serverless Typescript Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🚧 Severless Typescript Template

Serverless + Typescript Template

An easy-to-use Serverless template!

  • Allowed to use typescript in serverless.js!

Serverless Is Awesome GIF

πŸ“₯ Installation

Template Download & Install

git clone https://github.com/hmmhmmhm/serverless-ts-template
cd serverless-ts-template
npm install

Install Serverless

npm install -g serverless

πŸ“œ Configulation

πŸš€ Create Hosting Service

πŸ‘©β€πŸ’» Config Serverless

You must need to setup before deploy action using to serverless config command. and must correctly set the provider config in serverless.yml

πŸ“¦ Config Template

  • You must change the handler names in every files.
    • Open up handler.ts and serverless.yml files.
    • Fix yourFunctionName to actual Lambda Function names

πŸ“” Command

  • npm test (or npm start)

    Run the development local serveless server. This command creates a path accessible through HTTP.

  • npm run deploy

    Deploy the file to the physical server. (like a AWS)

License

MIT Licensed.