Giter Club home page Giter Club logo

usermanagement's Introduction

PHP developer test task

Subject:

Create an API which allow users and groups management Out of scope: authentication, and roles management; forms and views

User Stories:

  • I want to create a user who is included in a group
  • I want to check if this user exists and is active
  • I want to modify the list of users of a group

Entities:

  • User: email, last name, first name, state (active/ non active), creation date
  • Group: name

API methods:

  • /users/ fetch(retrieve) list of users
  • /users/ create a user
  • /users/id/ fetch info of a user
  • /users/id/ modify users info
  • /groups/ fetch list of groups
  • /groups/ create a group
  • /groups/id/ modify group info

Bonus:

  • to perform a functional test
  • add validation constraints/rules

Framework:

any modern MVC PHP framework - Symfony, Yii, Laravel or similar

Install:

git clone [email protected]:Shamann1101/UserManagement.git
cd UserManagement
composer install
php bin/console doctrine:database:create
php bin/console doctrine:schema:create
php bin/console doctrine:fixtures:load
php bin/console sever:run

Access:

For SUPER_ADMIN_ROLES:

  • user: admin
  • password: admin

You can also try other users with random roles:

  • user: test[0-9]
  • password: test

usermanagement's People

Contributors

shamann1101 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.