/sssnap-server-old

DEPRECATED – current sssnap server, very old, but in use, for the lulz

Primary LanguageJavaScriptApache License 2.0Apache-2.0

sssnap Server Build Status Test Coverage Dependency Status

Written in node.js with use of express.js (and some kind of own swagger interpretation).

Functionality

The server provides an API which authorizes an user with OAuth2.0. The API has to be fast and secure.
Also the server provides a frontend for the user.

Visit the Wiki to learn how use the API.

Requirements

  • node.js
  • mongodb

Running the server

npm start Start in development environment.

  • No authentication needed
  • Every request will be performed from a dummy user
  • Connect to database sssnap-dev

npm run production Start in production environment.

  • Authentication needed
  • Every request needs a valid access token
  • Connect to database sssnap

Milestones

also see https://github.com/51seven/sssnap-server/milestones?state=open

v0.2.0 (started 2014-11-17) (closed 2014-11-20)

  • Restrict access to uploads from others
  • View private raw files
  • Restrict non-images
  • User Quota Information

v0.1.1 Improvement (started 2014-11-14) (closed 2014-11-16)

  • Code cleaning
  • Refactoring stuff
  • Mongoose Schema improvement
  • Commenting
  • Testing

v0.1.0 (started 2014-11-13) (closed 2014-11-14)

  • The API lists uploaded files with skip and limits
  • The API lists more informations about the user
  • The user can view an upload in the browser
  • The uploaded file is being encrypted

1st Milestone (started 2014-10-21) (closed 2014-11-05)

  • The client can upload a file
  • The API answers with a good and meaningful response
  • The API is only accessible with a private key
  • The server registers a new user