Skip to content

ImranArtwel/favoritePosts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Favorite Posts App

This is a simple Express-Vue app that allows the user to mark favorite posts from a list of posts retrieved from an external API.

Tech stack

  • MongoDB for persistent storage
  • Express/Node for backend
  • Vue for frontend

How to run

1. git clone the repo
2. cd favoritePosts
3. npm install

To run the server:
nodemon server [will run the server on port 5000]

To run the client:
cd client
npm run serve [will run the dev server on port 3000]

Routes

These are the routes supported in this application. You can play around with more routes as shown on the API page

GET	 /posts     -> retrieve all 100 posts 
GET	/posts/search?key=title -> retrieve all posts that includes the search key

GET	 /posts/favorite -> retrieve all favorite posts
GET	 /posts/favorite/search?key=title -> retrieve all favorite posts that includes the search key
POST	/posts/favorite -> create a favorite post
PATCH    /posts/favorite/update -> update a specific post
DELETE   /posts/favorite  -> delete a specific post

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published