Fullstack app made as a project for Symfony and React courses at BC Helsinki. It has React.js in the front, Symfony in the back and MySQL (phpMyAdmin) as a database. It uses Google Books API for fetching books.
- Copy the folder to SymfonyMAMP and rename to "web". Then cd to "web"
- Install dependencies using
composer install
- Install front-end dependencies using
npm install
- Create SQL database
- Open file .env in "SYMFONY-MAMP" folder (not the "web" folder!)
- Rename database to
DATABASE_NAME=bookstore
- Start Docker container SYMFONY-MAMP. Make sure you have now "bookstore" database in phpMyAdmin.
- Afterwards you can run webpack encore using following command
npm run watch
- Visit URL: http://localhost:8007/ to see the app
- Use Crtl + C to stop the watch
npm run watch
- to run locallynpm run deploy
- to create build, commit and push to Heroku