Skip to content

Project is providing simple Symfony web application that enables users to rate different spirits after tasting them.

Notifications You must be signed in to change notification settings

mskraban/spirit-rating

Repository files navigation

Flaviar - PHP Backend Engineer Test Assignment


Flaviar assignment

๐Ÿ“ About The Assignment

Project is providing simple Symfony web application that enables users to rate different spirits after tasting them.

๐Ÿงฐ Built With

๐Ÿ“š Getting Started

Provided instructions how to setup and run package on your computer. I used xampp on windows, so I placed project to xampp/htdocs folder

โ„น๏ธ Prerequisites

To start using the project, you need to have installed composer and yarn package manager.

โ˜‘๏ธ Installation

  1. Download Git repository
  2. Place it on your server directory (for me it was htdocs, since I use xampp)
  3. Install Composer dependencies composer install
  4. Install Yarn dependecies yarn install
  5. Start server symfony server:start
  6. Create database php bin/console doctrine:database:create
  7. Prepare table php bin/console doctrine:migrations:migrate
  8. Compile build npm run build

๐Ÿ–ฑ๏ธ Usage

User have to register and create account. After registering user will have to login using created account. After login user is redirected to rating page, where user rate spirits after tasting them.

๐Ÿ“” API endpoints

List of all available REST API endpoints.

Request type URL Description
GET /api/ratings Retrieves the collection of Rating resources
POST /api/ratings Creates a Rating resource
GET /api/ratings/{id} Retrieves the Rating resource
PUT /api/ratings/{id} Replaces the Rating resource
DELETE /api/ratings/{id} Removes the Rating resource
PATCH /api/ratings/{id} Updates the Rating resource

โ— Notes

  • In case you get error "The metadata storage is not up to date" remove your database version provider from .env file at ?serverVersion

About

Project is providing simple Symfony web application that enables users to rate different spirits after tasting them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published