Database-Driven Website for Home Team Creativity
https://www.hometeamcreativity.com
- UI (frontend): localhost
- API (backend): localhost/api/
- PHPMyAdmin (DB): localhost:8080
The initial .env file is called sample.env. You should be able to directly copy it to
.env.
- PITFALL! Make sure the file is
.envand NOT.env.txt. On windows, enable "show filetype extensions" and then you can ensure the file is nammed correctly. You can also usecp sample.env .envif you are on the cli.
Install Docker https://www.docker.com/products/docker-desktop/
- Install "Just" using the below commands
- curl -q 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
- echo "deb [arch=amd64 signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
- sudo apt update
- sudo apt install just
Refer to Just Commands
- used to start the project
- used to stop docker containers, but keeps database info
- used to stop and remove all docker images, volumes, and data
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-22-04
docker cp hometeamcreativity-api-1:/var/www/images PHP/src
npm install
npm run build