Error 404

Memories

Do you any interesting Anecdote?

Don't wait! Go and post it on: https://memories-a.firebaseapp.com/

About Memories:

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: [TO BE UPDATED SOON]
Get() Endpoint: [TO BE UPDATED SOON]
getPostsBySearch() Endpoint: http://localhost:3000/api/posts/search?searchQuery=[POST-TITLE-SEARCH]&tags=[TAG1,TAG2]
      eg: http://localhost:3000/api/posts/search?searchQuery=none&tags=Tom,Jerry GetPostsByPage() Endpoint: http://localhost:3000/api/posts?page=[PAGE_NO]&limit=[NO_OF_POST_NEEDED_PER_PAGE]
      eg: http://localhost:3000/api/posts?page=1&limit=5

Steps to Run on Local Machine


Note: You need to have Node.Js installed in your Local Machine if not, first install it from here.

Step 1) Clone AmanSinghBhogal/Memories-Frontend repository.
Step 2) Clone AmanSinghBhogal/Memories-Backend repository.
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

Step 4) Once all the dependencies are successfully installed, Run the following Command:

npm run dev

Step 5) Once the above steps are done you should get the message:

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

Step 7) Open Memories-Backend Directory in Command Prompt and run the following command:

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>'

Step 9) Next Run the following Command:

npm run dev

Step 10) Once the Above steps are completed successfully you should get the message:

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:3000/api/posts, this line should look like:

const url = "http://localhost:3000/api/posts";

instead of:

const url = "http://localhost:3000/api/posts";

Thank You