This is a small Node application which can be deployed on AWS Elastic Beanstalk by following the simple steps below:
- Clone this repository
- Run
npm install - Check that the application runs locally
node app.js
- Make sure you have an account in AWS Management Console. You need to have an IAM user and a root user
- You also need to have EB CLI set up on your machine and it can be checked by the following command
eb --version - Now, run the following command to setup Elastic Beanstalk for the project deployment. This command will create a .elasticbeanstalk folder in the root of your project
eb init
- Run the following command to create the environment in AWS where the application will run
eb create ENVIRONMENT_NAME_OF_CHOICE --single - Run this command to finally open the running app on the web browser
eb open - You can also change something in your app.js file and reflect the changes on your AWS deployed app by running
eb deploy