Skip to content

NodeJS/Express template, with an IaC module to deploy to AWS!

Notifications You must be signed in to change notification settings

NIT-Administrative-Systems/AS-serverless-nodejs-api

Repository files navigation

NodeJS API Template

This is a JSON:API service that can be quickly deployed to AWS. The tech stack is:

Note that this does not include a database driver out of the box.

Running for Development

You will need NodeJS and Yarn installed.

# Set up .env file w/ DB credentials/etc
$ cp -r .env.example .env
$ vi .env # or your editor of choice -- set the missing variables (and add your own, etc)

$ yarn install

# Verify everything is working
$ yarn test

# Start the server
$ yarn start

Visit http://localhost:3000 to confirm the API is up.

Customizing

The following files should be customized:

Deploying to AWS

The included Jenkinsfile will run the deployment to AWS. Assuming you have customized the IaC files listed above, it should Just Work™.

One of the outputs from Terraform will be the Amazon API endpoint. This module does not set up a custom domain for it; instead, we have been using Apigee as a vanity domain for these services.

About

NodeJS/Express template, with an IaC module to deploy to AWS!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published