ProjectNov 2022 – Feb 2023
WasaPhoto: A Photo-Sharing Web App
A small social network for photos, built end to end: an OpenAPI-specified REST backend in Go with SQLite, a Vue.js front end, and Docker images for both.
WasaPhoto is a photo-sharing web app: users post photos, follow each other, see a stream of the people they follow, like and comment, and can ban users they do not want to hear from. It was a full-stack course project, designed API-first.
Backend
- API first. The whole REST API is specified in OpenAPI before any code: login, profiles and username changes, user search, the photo stream, upload and deletion, follow and unfollow, ban and unban, likes and comments.
- Go with
httprouter, structured into an API layer and a database layer, with an authorisation wrapper in front of every authenticated route. - SQLite for storage (users, photos, likes, follows, comments, bans), with the schema created on first start.
Front end and deployment
A Vue.js single-page app consumes the API. Backend and front end each have
their own Dockerfile, so the whole app runs with two docker run commands.