PhotoManager
Photomanager is a REST application aimed primarily at photographers who want to organize their photos into categories, so that the same image can belong to one or more categories.
The user must have a Dropbox account, so that the application can manage their images.
Please take a look at the API documentation to learn more.
Requirements
- MongoDB: this application uses a NoSQL database.
- GO compiler: this application was written in GO, a modern language developed by Google and realeased in 2009.
Create the database
Open a terminal and execute the following command from the application directory:
$ mongo [ENTER YOUR DATABASE NAME] scripts/dbschema.js
Configuration
Copy config-example.toml to config.toml and change the key values. To configure the [dropbox] section simply follow these steps:
- Sign in into your Dropbox account.
- Open the Dropbox Application Console and create a new project. Select the following options:
- Choose an API: Dropbox API
- Choose the type of access you need: App folder
- Name your app: Any available name.
- Add a new
Redirect URI: http://localhost:8080/v1/auth/login (in case your serverAddr is localhost:8080)
- Then copy the following values into your configuration file:
appKey: App key
appSecret: App secret
redirectUri: Redirect URIs
And that's all.
Install and start the server
Change to the project's folder and execute the next commands:
# install the application
$ go install
# start the server
$ photomanager
2019/02/20 19:32:59 Server started at port localhost:8080
Make sure that $GOPATH/bin is included in your $PATH environment variable.