photomanager

command module
v0.0.0-...-89f3358 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

README

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

  1. MongoDB: this application uses a NoSQL database.
  2. 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:

  1. Sign in into your Dropbox account.
  2. 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.
  1. Add a new Redirect URI: http://localhost:8080/v1/auth/login (in case your serverAddr is localhost:8080)
  2. 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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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