Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 2.1 KB

README.md

File metadata and controls

42 lines (34 loc) · 2.1 KB

React React Router Symfony MySQL PHP JavaScript Google

Book Nook - fullstack app (React.js + Symfony)

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.

Steps to follow

  1. Copy the folder to SymfonyMAMP and rename to "web". Then cd to "web"
  2. Install dependencies using composer install
  3. Install front-end dependencies using npm install
  4. Create SQL database
    • Open file .env in "SYMFONY-MAMP" folder (not the "web" folder!)
    • Rename database to DATABASE_NAME=bookstore
  5. Start Docker container SYMFONY-MAMP. Make sure you have now "bookstore" database in phpMyAdmin.
  6. Afterwards you can run webpack encore using following command npm run watch
  7. Visit URL: http://localhost:8007/ to see the app
  8. Use Crtl + C to stop the watch

Scripts

  • npm run watch - to run locally
  • npm run deploy - to create build, commit and push to Heroku

Tech stack

  1. SymfonyMAMP
  2. Symfony
  3. React.js
  4. React router
  5. MySQL
  6. PHP
  7. Google Books API