https://github.com/ezy/aws-node-express
A simple Express JS application with correct settings and instruction for setting up on AWS Elastic Beanstalk t2.micro
https://github.com/ezy/aws-node-express
api api-server aws beanstalk elasticbeanstalk express express-js node nodejs
Last synced: 7 months ago
JSON representation
A simple Express JS application with correct settings and instruction for setting up on AWS Elastic Beanstalk t2.micro
- Host: GitHub
- URL: https://github.com/ezy/aws-node-express
- Owner: ezy
- Created: 2018-10-01T22:13:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-02T02:17:18.000Z (about 7 years ago)
- Last Synced: 2025-01-24T14:44:01.198Z (9 months ago)
- Topics: api, api-server, aws, beanstalk, elasticbeanstalk, express, express-js, node, nodejs
- Language: HTML
- Size: 34.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🤓 Express JS on AWS Elastic beanstalk
An example setup to get your Express JS application deployed to AWS Elastic Beanstalk t2.micro. There's so quite a few config options and gotchas when setting up an instance, and this was the most basic setup I found for Node.
## App Setup
* Use the AWS console to navigate to Elastic Beanstalk and create a new NodeJS Application and environment
* Go to the Configuration tab and under "Software" set your Node -v to 8.11.4 and enter PORT=8081 in env vars
* Clone the repository
* Cd to dir and run `npm install`
* Install AWS tools and EB-cli (can be done with brew packages `awscli` and `aws-elasticbeanstalk`)
* Setup your dir with `eb init` and select previously setup Application
* Select your environment with `eb list` then `eb use ` (or `eb create` an env from the console)
* Run `eb deploy` to upload to AWS## Run locally
* Rename `.env.example` => `.env` and set your env variables
* `npm start`
* Open http://localhost:8081/