Skip to content

leopi99/photoSync_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Would like to help the development?

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.

PhotoSync

What is PhotoSync_api?

This is the backend for the PhotoSync app.

Not stable for "production" this is still in beta, everything can change

Features

  • 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)

How to setup the server

  • 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 using go build . and then running the executable created.

Why PhotoSync?

Since the popular Google photo have dropped the unlimited storage, I thougth to create this to have the storage size when I want

About

PhotoSync api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages