Giter Site home page Giter Site logo

authenticity's Introduction

Authenticity Build Status

A lightweight application to guarantee files authenticity.

homepage

It acts like a central repository of files, which can be uploaded only from valid sources through its API and are available publicly when the correct file key is used.

Follow me on Twitter.

Getting Started

Before installing, it's recommended that you be sure that you have at least Node.js v0.12.

Install

  1. Clone this repo into your local environment.
  2. Run npm install from the app directory.
  3. To execute the tests, run make test.
  4. node bin/www

Configurations

Default options (config/default.json):

{
  "File": {
    "multer": {
      "dest": "uploads/",
      "limits": {
        "fileSize": 10485760
      }
    },
    
    "types": ["application/pdf", "image/jpeg", "image/png", "image/tiff"]
  }
}

API Usage

Creating a new file

POST: /api/v1/files

Parameters Type Required
token_key string true
file_key string true
file file true
description text false

Requesting file info

GET: /api/v1/files/:file_key

{
    "id": 1,
    "description": null,
    "key": "file_key",
    "path": "path/to/the/file.pdf",
    "md5Digest": "0acda6a8d205ba80edfc8e8d92044aba",
    "sha1Digest": "e292f0b08df083e13c444f43c5d4efa0a3ad1712",
    "createdAt": "2015-09-16T20:24:01.366Z",
    "updatedAt": "2015-09-16T20:24:01.366Z"
}

License

Authenticity is MIT licensed. Enjoy!

authenticity's People

Contributors

diegocouto avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

authenticity's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.