Skip to content

codevivi/administratorius-extend-given-code

Repository files navigation

🪧 Express admin, extend given code

2023-03-22 & 2023-03-24 tasks

🎯 Goals:

link to task (lt)

2023-03-22

Code for deleting users was already given._

  • Task 1

    Do not allow admin to delete his own account.

  • Task 2

    Add functionality to edit users, do not allow duplicate emails.

2023-03-24

code for gallery was given

  • Task 3

    User should not be able to rate pictures more than once. If picture was already rated, show user's rating instead of rate form.

  • Task 4

    Sort gallery pictures from best total rating to least.

🏁 Getting started

Must have Node.js installed

  1. Clone the repo

  2. Go into project directory and Install NPM packages

    npm install
  3. use application:

    npm start
  4. default login: keistas@vardas.lt, 1234