Symfony based note API. Provides JSON API endpoints to create, read, update and delete notes.
- Install docker
- Start up docker compose instance -
docker-compose up --build -d
- Gain access to php bash shell -
docker exec -it php bash
- Go to root of symfony project -
cd code
- Install dependencies -
composer install
- Open site in browser localhost:8001
- Copy this repository to your own GitHub account.
- Add phpmyadmin container to docker compose. Document access in README.md
- Create Note entity. Note has id, title, created time and text.
- Make sure to generate migrations for database tables/schema.
- Write code for all routes in NoteController so that application fulfills CRUD tasks using JSON format.
/notes/add
- Add new note./notes/{id}
- Get note by id./notes/{id}
- Put an update to note by id./notes/{id}
- Delete a note by id./notes
- Get all notes ordered by date (The newest first). Add options to limit results, change sorting order and search note by text.
- Add documentation and comments as needed using best practices.
- Create Pull Request on your own repository describing changes. Add manual testing scenarios for each functionality in PR.
- (Optional) Write unit or web tests.
- Send us a link to your PR.
- Host: 127.0.0.1
- Port: 8080
How to log into PHPMyAdmin screen:
- Go to PHPMyAdmin login screen
- Enter 'db' as the 'hostname'
- Enter username and password as specified in docker-compose.yml