About | Technologies | Requirements | Starting | License | Author
This project is an APIRestfull with Frontend, made with Symfony, JavaScript, MySQL and HTML. In this project the user can add a category and an item using the method POST, the information of an item can be changed with method PUT, an item can be searched with method GET and is possible to delete an item with method DELETE.
The following tools were used in this project:
- PHP
- Symfony
- MySQL
Before starting :
you need to have installed :
- GIT
- PHP7.4
- MYSQL
- COMPOSER
# Clone this project
git clone https://github.com/cpereira42/dafiti
# Access
cd dafiti/api
# Install dependencies
composer install
# Database
open php.ini and uncomment "extension=pdo_mysql"
open .env and change database connect
DATABASE_URL="mysql://root:[email protected]:3306/dafiti"
# Create DB
php bin/console doctrine:database:create
# Migrate DB
php bin/console doctrine:migrations:migrate
# Start API # The server will initialize in the <http://localhost:8080>
php -S localhost:8080 -t public
# Start Frontend # The server will initialize in the <http://localhost:8081>
cd ../frontend
php -S localhost:8081
# Acess
Acess link http://localhost:8081/index.html