This is a simple message board. Users can create posts, comments and comment replies and 'like' each separately, similarly to reddit.
- As a user I should be able to see all available posts
- As a user I should be able to create a new post
- As a user I should be able to 'like' a post
- As a user I should be able to see all comments within a post
- As a user I should be able to comment on a specific post
- As a user I should be able to 'like' a comment or comments
- As a user I should be able to reply to a comment and see replies from other users
- As a user I shoudld be able to 'like' a reply
- Express
• Used for Node.js server - Morgan
• Terminal logger - Async
• Allows us to run functions asynchronously - Body Parser
• Allows us to parse HTML and find json object based on input/textarea names - EJS
• For EJS templates and getting content from json objects - Marked
• Parses markdown to HTML - Path
• Used to set up public folder for static files - Pg-Promise
• Used to read SQL queries on Node - Method Override • Used for PUT and DELETE requests
- Git clone or download this project
- Create a PostgreSQL database called 'project_2_db'
- On your terminal, run psql -d project_2_db -f migrations/migrations.sql
- If you haven't already, install nodemon package (npm install -g nodemon)
- Run nodemon, app should be available on localhost:3000