These instructions will get you a copy of the project up and running on your local machine if you want to test it or develop something on it.
Follow those steps to make the project run on your machine
Clone the project :
git clone https://github.com/mathiiii-dev/phonebook-kata.git
Install composer dependencies :
cd backend
composer require
First edit .env (or create a .env.local to override it) with your database credentials :
DATABASE_URL="mysql://root:@127.0.0.1:3306/phonebook?serverVersion=5.7"
Create the database :
php bin/console doctrine:database:create
Update schema :
php bin/console doctrine:schema:update --force
Using Symfony CLI :
symfony serve
or :
php bin/console server:start
Install dependencies :
cd frontend
npm i
npm run dev
To avoid cors problem you can run :
lcp --proxyUrl http://127.0.0.1:8000
Change your API Environment Variables in the next.config.js to your api url
module.exports = {
env: {
api: 'my-api-env',
},
}
- Symfony - Framework PHP
- NextJS - Frontend framework
- react-bootstrap - API Documentation
- Mathias Micheli - Student - Github