Demo: http://35.197.8.81:8080 (You can "Register" a new account) (Archived Video Demo)
-
Change the name of
/server/.env.example
to.env
by runningmv server/.env.example server/.env
and edit theNODE_ENV
and/orPORT
if you wish. (No changes necessary for simple local testing.) -
Change the name
/app/.env.example
to.env
and edit theHOST
and/orPORT
if you wish. (No changes necessary for simple local testing.)
- Install Docker on your host machine.
[ https://docs.docker.com/get-docker/ ]
- In a PowerShell/terminal,
cd
to the project root directory (wheredocker-compose.yml
is) and run :
docker-compose up --build
-
The
docker-compose
will spin up thebackend
server, followed by thefrontend
server. -
Wait until the
frontend
portion of thedocker-compose
completes. The final message displayed in PowerShell/terminal should be:
frontend_1 | App running at:
frontend_1 | - Local: http://localhost:8080/
frontend_1 |
frontend_1 | It seems you are running Vue CLI inside a container.
frontend_1 | Access the dev server via http://localhost:<your container's external mapped port>/
frontend_1 |
frontend_1 | Note that the development build is not optimized.
frontend_1 | To create a production build, run npm run build.
- Once the above message is displayed, navigate to
localhost:8080
in a web browser on your host machine.
In a new PowerShell/terminal, navigate to the project root directory (where docker-compose.yml
is) and run:
docker-compose down
-
In a PowerShell/terminal,
cd
to/server/
and runnpm install
to install the backend dependancies. -
In a PowerShell/terminal,
cd
to/app/
and runnpm install
to install the frontend dependancies.
-
Backend:
cd
to/server/
and runnode index.js
. -
Frontend:
cd
to/app/
and runnpm run dev
.