pesto-students / little-tags-shubhadeep29-backend

little-tags-shubhadeep29 created by GitHub Classroom
https://reverent-villani-c8491d.netlify.app/
0 stars 1 forks source link

The Admin Panel #6

Open ArfatSalman opened 3 years ago

ArfatSalman commented 3 years ago

Instructions

You should render an admin page with these operations (for now). The admin panel doesn't require any strict design or designing. However, the form fields, buttons and the layout should be centered and not be placed haphazardly on the page. Feel free to use bootstrap or other CSS/JS utilities.

Admin Authorization: As soon as someone comes onto your backend URL, he/she should be prompted to login as an admin (as WordPress applications do). In your backend, you are going to have a list of admins. The way to do this is numerous and you can choose one of the many methods. For e.g. you can have a property on the user role which can tell what's the role of a user. In our case, since there will only be one role (i.e of the admin), you can also have a separate list of admins. An non-admin should be not be able to access or modify any resource in the backend.

Note: If you've been using the fakestoreapi, you can use fakestoreapi in your backend as well. That is, an approach like this should be feasible.

Restrictions

Ensure that you are not using React to render the backend pages. You have to use a template engine. It is recommend that you use EJS template engine as it is very popular and has great support. Though, you may use something else as well.

Resources

nitinmadelyn commented 3 years ago

@ArfatSalman what would be best way to do the internationalisation for product detail page? I am thinking of adding two records for 1 product in DB, 1 for English and 1 for Spanish.

Sounds good?