Project is providing simple Symfony web application that enables users to rate different spirits after tasting them.
Provided instructions how to setup and run package on your computer. I used xampp on windows, so I placed project to xampp/htdocs
folder
To start using the project, you need to have installed composer and yarn package manager.
- Download Git repository
- Place it on your server directory (for me it was htdocs, since I use xampp)
- Install Composer dependencies
composer install
- Install Yarn dependecies
yarn install
- Start server
symfony server:start
- Create database
php bin/console doctrine:database:create
- Prepare table
php bin/console doctrine:migrations:migrate
- Compile build
npm run build
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.
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 |
- In case you get error "The metadata storage is not up to date" remove your database version provider from .env file at
?serverVersion