Skip to content

kayateia/lifestream-node-server

Repository files navigation

LifeStream - Instant Photo Sharing ... in NodeJS

Copyright © 2016 Kayateia and Deciare

What is this?

LifeStream is a photo sharing service intended to be used in conjunction with a mobile client. The reference mobile client implementation is LifeSharp.

lifestream-node-server implements a RESTful API with which clients interact in order to make use of the service. It also bundles a Web client that uses the API.

Installation

Make a copy of config.template.js and modify it to suit your environment.

cp config.template.js config.js

Install dependencies from npm and bower.

npm install -g bower
npm install
bower install

You may also need to install GraphicsMagick on your host operating system if images don't appear in the gallery.

Usage

To start the server, run:

node bin/www

For development, it is recommended to use nodemon to automatically restart the server when code changes are made.

npm install -g nodemon
nodemon

For production, it is recommended to use forever to immediately restart the server if it goes down.

npm install -g forever
forever -w --watchDirectory . --watchIgnore 'uploads/*' bin/www

Database

By default, lifestream-node-server expects to connect to a MySQL database, and configuration options for that connection are in config.js.

There is an option to use SQLite instead, which may be simpler for development purposes. Due to concurrency issues, doing so is not recommended for production use.

To enable SQLite, edit config.js to specify "sqlite" as the databaseDriver:

	databaseDriver: "sqlite",

Web client

By default, lifestream-node-server bundles a Web client that runs as part of the same node process as the APIs. If you wish, you can disable the Web client by editing config.js:

	webClient: false,

Dependencies

Licence

GPLv3

About

LifeStream server 2.0, written in Node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published