You are encouraged to help with the development of this project, feel free to create PR. Creating issues that can help me getting the app or the api better would be appreciated.
This is the backend for the PhotoSync app.
- Handles login and registration
- Adds pictures to the database; this does not saves the image in the database, using the structured paths uses the username and the file creation date.
- Saves the media files in the server
- Serve the syncronized files (currently pictures and videos, tested only with photos)
- Available outside your house [TODO] (maybe using ngrok)
- To create the database you can import the .sql file from this repository (photosync.sql, probably not finished)
- Create a file inside the src folder (named as you want) with 4 constants (databaseUsername, databasePassword, databaseAddress, databaseName), note that the databaseAddress must contain the port.
- You can change the api port and the base endpoint url from the api_endpoints.go
- To run the api you can use (inside the src folder) run
go run .
or you can build the project usinggo build .
and then running the executable created.
Since the popular Google photo have dropped the unlimited storage, I thougth to create this to have the storage size when I want