Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Picture uploading for the rest of us
C# JavaScript Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Content
Effects
AccessLogger.cs
Apachai.cs
BackingStore.cs
ConfigManager.cs
ContextExtensions.cs
Hasher.cs
HtmlPaths.cs
Json.cs
JsonStringDictionary.cs
Makefile
OAuth.cs
PictureContentModule.cs
README.md
ServiceStack.Redis.dll
StaticContentModule.cs
TagLibMetadata.cs
Twitter.cs
UrlShortener.cs
authenticating.html.tpl
buildhtml.sh
config.json.template
home.html.tpl
post.html.tpl
redis-sharp.cs
sign.html.tpl
stats.html.tpl

README.md

Apachaï

Picture uploading for the rest of us

Apachaï is designed to be a small and lightweight photo and picture sharing application (for services like Twitter) built on the Manos framework. A running instance is available at apch.fr.

Dependencies

It depends on a Redis server available and on ServiceStack .NET binding to it (included).

Apachaï also leverages code from TweetStation and Pinta but it's not needed to have any of them installed.

Of course, you need Manos installed if you want to launch the application (no need for another webserver though).

How to run

To run Apachaï you need to adjust a few things. First, rename config.json.template to config.json and adjust the settings there. Following is a small description for each of them:

  • serverBaseUrl: that's the URL of the host you deploying unto (example: http://apch.fr)
  • twitterKey and twitterSecret: get one over at http://dev.twitter.com
  • twitterCallback: theorically it should be set to something like serverBaseUrl/AuthCallback but who knows.
  • testInstance: a boolean, if true the application will work standalone and will never do a single call to Twitter. Useful for debugging purpose.
  • imagesDirectory: a path (relative or absolute) to a folder where your want the picture sent to be stored. Defaults to the 'Pictures' value (you have to create the folder in the root directory yourself though).
  • redisServers: an IP or host array of string where we can join Redis server instances, by default we simply use 127.0.0.1

Then just in case, walk a bit in the javascript code under Content/js as I may have hardcoded some stuff to http://apch.fr (promise, I try to avoid this but sometimes I'm lazy). A grep should do the trick.

Finally just hit manos -s in the root folder and you are all set.

License

All code, markup and others are released under the permissive MIT license.

Copyright (c) Jérémie "garuma" Laval

Something went wrong with that request. Please try again.