This project contains a message board which allows users to post markdown enabled comments witin various communities (similar to subreddits). This project is built to help you get started with AWS CodeStar. It contains everything you'd need to get started with a realistic Node.js application.
- Express.js - The server which handles all the post requests for content.
- Redis - Caching and displaying the data for the chart.
- DynamoDB - Storing all the messages on the board.
.ebextensions/
- Contains the configuration files that AWS Elastic Beanstalk will deploy your Express application.package.json
- Contains various metadata and dependencies.app.js
- The entrypoint for our express app.public/
- Directory contains static web assets used by the application.
These directions assume you want to develop on your local computer, and not from the Amazon EC2 instance itself. If you are ready to deploy this to AWS, then skip to the next section.
-
Install Node.js on your computer. For details on available installers visit
-
Install NPM dependencies:
$ npm install
-
Rename the
example.env
file to.env
and place yourAWS_ACCESS_KEY_ID
,AWS_SECRET_KEY
,AWS_REGION
, andREDIS_HOST
right after the respective=
signs. -
Make sure you have redis installed locally. Use the
$ redis-server
command to run a redis server on your localhost. -
Create a DynamoDB table called
messages
. -
Start the development server:
$ node app.js
-
Open
http://127.0.0.1:3000/
in a web browser to view your application.
(instructions coming soon)