Skip to content

AlexisChup/digiwiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

158 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DigiWiki

Folder Structure

📂skeleton-docker-react-symfony
┣📦apps
┃┣ 📂back-symfony
┃┣ 📂front-react
┃┣ 📂logs
┃┣ 📂nginx
┃┗ 📂php-fpm
┣ 📜.env
┣ 📜.gitignore
┣ 📜Makefile
┗ 📜README.md

Requirement

  • Windows: WSL2 & Docker Desktop
  • Linux / Max: Docker

Installation

  • git clone https://github.com/AlexisChup/digiwiki.git

Usage

Start containers the 1st time or when you have added libs

  • make runbuild
  • Wait few minutes, the 1st build might take some times
  • Generate the SSL keys
    • Run docker exec -it php-fpm sh
    • Run php bin/console lexik:jwt:generate-keypair
  • Load Fixtures
    • Run php bin/console doctrine:fixtures:load
  • Open browser at http://localhost:9090

Start containers other times

  • Run containers: make run
  • Wait about few seconds until containers are started
  • Open browser at http://localhost:9090

Stop containers

  • Run make stop

Architecture

Back Symfony

Load fixtures

  1. Run docker exec -it php-fpm sh
  2. Run php bin/console doctrine:fixtures:load

Make entity and save in in database

  1. Run docker exec -it php-fpm sh
  2. Run php bin/console make:entity
  3. Run php bin/console make:migration
  4. Run php bin/console doctrine:migrations:migrate

Persisting Objects to the Database

  1. Run docker exec -it php-fpm sh
  2. Run php bin/console make:entity
  3. Run php bin/console make:controller XXXXController

Backup

  1. Run heroku pg:backups:capture --app dw-back
  2. Run heroku pg:backups:download --app dw-back

Miscellaneous

See SymfonyDoc for more

Front React

Libs

  • react-bootstrap
  • react-icons
  • react-redux
  • react-router-dom
  • react-toastify

Install new libs

  1. Run docker exec -it front-react sh
  2. Run npm install my-lib

Production

heroku git:remote -a

About

Design and development of a website allowing you to discover digital tools according to different categories.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors