Clone the application using:
git clone git@github.com:victorsteven/gallery-app.git
Change to the server
directory:
cd server
-
Update the
.env
file with correct details. Both for the real database and the testing database. -
Run unit and integration test from the root of the server directory using:
go test -v ./...
- In the root of the server directory, start the server using:
go run main.go
The server will start running on port 7070(the default port from the .env file)
In a different terminal window, change to the client
directory
cd client
- Installation:
npm install
- Start the client using:
npm run serve
- The client will start running on port 8080
Visit the browser with the address:
localhost:8080
- If you wish to change the port the server listens to, you will need to change that in the
.env
file in the server directory and also in thesrc/.env.js
file in the client directory.