wasaphoto

module
v0.0.0-...-65dbfd8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: GPL-3.0

README

Swagger Go SQLite JavaScript Vue.js Vite Docker

WASAPhoto

wasa-screenshot Keep in touch with your friends by sharing photos of special moments, thanks to WASAPhoto! You can upload your photos directly from your PC, and they will be visible to everyone following you.

This project was realized for the Web And Software Architecture course at Sapienza, based on the Fantastic Coffee (decaffeinated) template.

How to run

Running in debug mode
Backend
    $ go run ./cmd/webapi &
Frontend
    $ ./open-npm.sh
    $ npm run dev
Running in docker
docker compose
    $ docker compose up -d
Backend only
    $ docker build -t wasaphoto-backend:latest -f Dockerfile.backend .
    $ docker run -t --rm -p 3000:3000 -v ./demo/db:/app/db wasaphoto-backend:latest
Frontend only
    $ docker build -t wasaphoto-frontend:latest -f Dockerfile.frontend .
    $ docker run -t --rm -p <PORT>:80 wasaphoto-frontend:latest

Your instance of WASAPhoto will be reachable through http://localhost:PORT/ By default, the docker-compose will expose port 8080

Directories

Path Synopsis
cmd
healthcheck
Healthcheck is a simple program that sends an HTTP request to the local host (self) to a configured port number.
Healthcheck is a simple program that sends an HTTP request to the local host (self) to a configured port number.
webapi
Webapi is the executable for the main web server.
Webapi is the executable for the main web server.
service
api
Package api exposes the main API engine.
Package api exposes the main API engine.
api/reqcontext
Package reqcontext contains the request context.
Package reqcontext contains the request context.
database
Package database is the middleware between the app database and the code.
Package database is the middleware between the app database and the code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL