Skip to content

akasmikityma/mediumfront

Repository files navigation

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
  },
}
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

auth ==>

1> only logged in users are able to get the posts that the app has to offer and then .. it has the functionality to post a new post by creating at the CreatePost page and then >>

do i show the users post on the same page as the page where the other users post are listed or not>>>>

==>> he made Auth as the cell of the body >> so he made Auth in a way that a type string can be Passed and then wrote 2 more Comps -SignUP , SignIN and called the Auth Comp there giving the type according to the comp >

Pages __________>> [All_these_routes_are_protected]

1 > all the Posts Containing Page 2 > single Post's elaborative page 3 > write A post page

blog page is different .. it cant be the cell for the blogs comp >>>>

only 2 things left more or less +++>>>>

Updation of a post == Deletion of a Post ==

deletion -- i can give a button icon in the cell post and then add a method there

updation can be another page thing kind of same as the the Create Post page and the clicking some button may get the job done>>

tasks --> have a loader comp and utilize the loader atom whenever the task is taking some time >

have some nice notifications that tells the user .. what happened to the event they did>>

{what if i delete the posts locally untill the user refreshes the page .. it can be faster in rendering the remaining posts that are left there>>} 

probable positions to use the loader comp 
- signIN/signUP
- creating a post
- deleting one / updating 
- home page fetching all the blogs [done] 

-----== Issues>>
1 .the loader is running unnecessarily when the user comes back from another page ..especially from the update page ..
** with out this rendering  seems to be faster 

2. Clicking on the update button must get me the page to update post but with the existing material that the post has >> so that only the needed parts get updated
   not like the whole thing has to be written again >>

change the statuscode of the signUP to 201 and then change accordingly in the frontend too then redeploy the backend

change the lorem ipsum text to something meanigfull text [done] in the home page have the title and the short desc of the post and once clicked then take the user to the very post's elaborated verison change the buttons a bit [done] have a user logo at the top left of the blog post followed by name

a user can only delete/edit to its own blogs ..nothing else

toastify [done]

can be done -- split the home screen into 2 halves and then on the right half i can list all the users ,, that the current user can follow may be a login/logout thing and the user-logo or something to make it look nicer at least

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors