This website allow you to post your thoughts anonymously, adding expresivity with a related gif. You will be able to see the reactions and comments to your post and see other anonymous posts.
- Emoji feature (Three emogis at least!)
- Random gif from giphy
- Board with other articles
- Comment section
- Responsive
- Show the posts that fits with a search query (with regex in the backend)
Dependencies:
- Bootstrap
- express
dev-dependencies:
- Jest
- supertest
- cors
- nodemon
- Clone the repository
- Navigate into the server folder
- Run npm install to download dependencies
A. Start The backend server
- Open a new terminal instance
- Navigate into the server folder
- Run npm start
- console will log that the server is running
- localhost:3000 can be visited
B. Start The front end server
- Open a new terminal instance
- Navigate into the client folder
- Run npm start
- console will log the address of the newly started server
C. Using the application
- Visit the webpage via the address generated by http-server
- The home page will show a random post - click the post to comment and react to it
- To add a post click
Add a Post
- To see previously added posts click
View All Posts
D. Available APIs
/
- Retrieve all data/posts
- Retrieve all posts/posts/random
- Retrieve a random post/posts/{id}
- Retrieve a single post/posts/{id}/comments
- Retrieve the comments for a single post
/posts
- Create a new post This requires a json payload in the following format..."title": "", "content": "", "gif": { "moving":"url of gif", "still":"url for static image of gif" } }```
/posts/{id}/comment
- Add a comment to an existing post This requires a json payload in the following format..."text": "" }```
/posts/{id}/{reaction}
- React to a specific post reaction can be one of these values- thumbsUp
- heart
- angryFace
######## CHANGELOG ##########
- Home page basic look and feel developed
- Server code added for initial routes
- Random post added to the homepage
- Single post page created
- Post Model code added
- Added functionality to comment on a post
- Server code refactored to allow for test suite
- Emoji reactions added to single post page
- Add a post page added
- All posts page released
- Code added to support heroku deployment
- Client code updated to point to heroku
- Server Test Suit improved
- All Posts filter added
- Post truncated on preview pages
- Styling Tweaks
- Fix for Heroku remove fs.readFile()
- Background positioning fixed
- Add more Server Side tests
- Footer positioning reworked
- Client Side Tests Added
########### BUGS / OUTSTANDING DEV ###########
- Filter on all posts page
- Logo on all posts page link to homepage
- Consistent styling across pages
- Comment button will link to single post page
- If you search for a gif with Enter key it tries to submit the form
- Improved error handling