Simple Image Viewer is a website that displays images. It allows you to create galleries, put images into these galleries, and display them via a website. There is no 'like' functionality or rating of any kind. It literally just displays images. What a novel concept.
The images are uploaded to Amazon S3 via a Python script. You have the option of running the images through a compressor before uploading them, however this step is optional. Once the images have been uploaded they must be placed into a database, for this I use DynamoDB.
- Clone this repo
npm install
- Install
imagemagick
- Install
jpegoptim
- Compress Images - The images are compressed via processor.py.
- Upload Images - Upload the images via uploader.py.
- Push to Databse - Create the database entries via push.py.
Now that you have all of your images in the cloud, you can configure the site to display them.
- Copy config.js.example to config.js.
- Replace the aws.key and aws.secret values with your secret and key. To get these values go here.
- Replace aws.db value with the table name you would like to use for your photos. I used family_photos for one of my sites.
- Move to Routes below.
Placing Routes in config.js is how your galleries are created. Here is an example route:
aws.routes = {
familysite : {
prefix : 'familysite',
title : 'I am not in any of these pictures!'
},
mycat : {
prefix : 'mycat',
title : 'Forever Alone'
}
};
// TODO : Go into more detail here.
#API/Tool References