This sample application uses the Express framework and RDS to build a basic web application with a database. This application allows users to record hiking logs.
This source bundle can be deployed to Elastic Beanstalk by following this blog
This source bundle can be ran locally using the following steps:
- Install Node to your machine, if you haven't already. You can download node from nodejs.org here. Confirm you have
npm
installed by runningnpm -v
. - Install and start MySQL on your machine.
- Replace the
user
andpassword
fields inapp.js
with information for an account on your local MySQL server. - Run
npm install
inside of thenodejs-example-express-rds
directory. - Run
npm start
. - Visit the website running locally on your machine at http://localhost:3000/hikes. You can enter in a hike and have the information recorded in the database