CaseyBaileyPDX/Doggr_sp22
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
INITIAL SETUP
1. You'll need to set up your .env files appropriately.
Copy either the .env.local.example or .env.docker.example to `.env`
and change variables appropriately in backend/ and frontend/ both.
2. Install frontend/backend packages by executing `npm install` in each subdir
3. From the BASE /Doggr folder, execute the following:
`sudo rm -rf ./minio && mkdir minio && sudo chown 1001 ./minio`
4. Build your containers with `docker-compose up`
5. Seed everything: From /backend, execute `npm run seed`
6. Bring up back/frontend by executing `npm run dev` in each
Test via http://localhost:3000
DROPLET DEPLOY
- Enable floating IP in droplet - 138.197.52.82
- Add NEW ssh key via `ssh-keygen` giving it a non-standard path/filename (droplet_id_rsa)
- Give droplet the key `ssh-copy-id -i /home/<user>/.ssh/droplet_id_rsa.pub root@<Droplet Floating IP>`
- SSH into droplet and install docker: https://docs.docker.com/engine/install/ubuntu/
- Add dir to hold our files `mkdir /app`