https://github.com/victorsteven/gallery-shopify
https://github.com/victorsteven/gallery-shopify
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/victorsteven/gallery-shopify
- Owner: victorsteven
- Created: 2021-01-18T00:32:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-18T00:38:20.000Z (over 4 years ago)
- Last Synced: 2025-01-11T09:19:55.396Z (4 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Photo Gallery Application
#### Installation
Clone the application using:
```
git clone [email protected]:victorsteven/gallery-shopify.git
```### The Server
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)### Testing Endpoints.
#### Login with any of the seeded user email and password and copy the token provided
#### Use this token as `Bearer Token`#### Delete one image using:
```DELETE http://localhost:7070/images/1```#### Delete bulk images using:
```DELETE http://localhost:7070/bulk_delete/images```