This is the code I wrote following the Thinkster IO tutorial on building a Medium clone (blogging social network) using the MERN stack (Mongodb Express React and Node) and is based on the (Thinkster IO Real World App, from the Thinkster Full Stack tutorial series by Thinkster IO
This code is for the front end. here is the tutorial. The back end code I wrote can be found here.
Click here for the demo
- Authenticate users via JWT (login/signup pages + logout button on settings page)
- CRU* users (sign up & settings page - no deleting required)
- CRUD Articles
- CR*D Comments on articles (no updating required)
- GET and display paginated lists of articles
- Favorite articles
- Follow other users
- Home page (URL: /#/ )
- List of tags
- List of articles pulled from either Feed, Global, or by Tag
- Pagination for list of articles
- Sign in/Sign up pages (URL: /#/login, /#/register )
- Use JWT (store the token in localStorage)
- Settings page (URL: /#/settings )
- Editor page to create/edit articles (URL: /#/editor, /#/editor/article-slug-here )
- Article page (URL: /#/article/article-slug-here )
- Delete article button (only shown to article's author)
- Render markdown from server client side
- Comments section at bottom of page
- Delete comment button (only shown to comment's author)
- Profile page (URL: /#/@username, /#/@username/favorites )
- Show basic user info
- List of articles populated from author's created articles or author's favorited articles
The app is deployed on Firebase. Here is the demo. Web address is: https://conduit-by-kg.firebaseapp.com
The live API server is running at https://intense-hollows-36762.herokuapp.com/api for any front end to make requests against and view. You can view the API spec here which contains all routes & responses for the server.
After cloning this repository, run npm install
Run npm start
Open up your browser at http://localhost:3000
-
Back end
- Version 1 (Thinkster Tutorial): 22 hours
- Version 2 (personal modifications): 7 hours (to add commentCount and Trending article list)
-
Front end
- Version 1 (Thinkster Tutorial): 37 hours
- Version 2 (personal modifications): 17 hours
Special thanks to Thinkster IO for a great tutorial. The Real World mother of all demo apps is very ambitious and is exactly what the world needs.
The codebase is MIT licensed unless otherwise specified.
To be modified further by Kgotso Koete
Johannesburg, November 2019