Don't wait! Go and post it on: https://memories-a.firebaseapp.com/
Memories is an Web Application where individuals can post their daily interesting Anecdotes. It's a social platform where people can enjoy, share, read, like or dislike the stories of their friends and other people from all around the world.
Backend API: https://memories-api1.herokuapp.com/
Get() Endpoint: https://memories-api1.herokuapp.com/posts
getPostsBySearch() Endpoint: https://memories-api1.herokuapp.com/posts/search?searchQuery=[POST-TITLE-SEARCH]&tags=[TAG1,TAG2]
eg: https://memories-api1.herokuapp.com/posts/search?searchQuery=none&tags=Tom,Jerry
GetPostsByPage() Endpoint: https://memories-api1.herokuapp.com/posts?page=[PAGE_NO]&limit=[NO_OF_POST_NEEDED_PER_PAGE]
eg: https://memories-api1.herokuapp.com/posts?page=1&limit=5
Note: You need to have Node.Js installed in your Local Machine if not, first install it from here.
Step 3) Open Memories-Frontend cloned Directory in Command Prompt and run the following command (It will install all the Dependencies needed to run):
npm i
npm start
You can now view client in the browser.
Local: http://localhost:3000
webpack compiled successfully
Step 6) Open Browser and go to http://localhost:3000
npm i
Step 8) Inside the directory create a new file with the name .env and add the following line of code:
CONNECTION__URL = 'mongodb+srv://<Your-User-Name>:<Your-Password>@<Your-MongoDB-Cluster-Name>'
npm start
Server Running Successfully on port: 5000
Note: At this point the App that you are running on your local machine is using online deployed API of our Backend to change that go into src/api/index.js and change the URL to the http://localhost:5000/posts, this line should look like:
const url = "http://localhost:5000/posts";
instead of:
const url = "https://memories-api1.herokuapp.com/posts";