NodeJs app to deploy to AWS beanstalk
NodeJS app --> Github --> AWS CodePipeline --> AWS Elastic BeanStalk
NodeJs app running on port 5000
- add this to the app.js file
const port = process.env.port || 5000;
- Add package json also add the "start" script:
"start" : "node src/app.js",
A IAM Role Service was created by Pipeline: AWSCodePipelineServiceRole-us-west-2-sharks-nodejs
-
Add AWS Elastic BeanStalk check the logs where the EBS is runnign the app ( exmaple 8080) , and add this to COnfiguration --> software , Environment as: port 8080
Apply the changes.
-
Adding CircleCI Integration
- config.yml file created
- Additional things to do for exmaple
- add test with supertest and mocha for example