Skip to content
Snippets Groups Projects
Commit 3f54c3a9 authored by Renzo Mauro Ontivero's avatar Renzo Mauro Ontivero
Browse files

Merge branch 'master' of https://github.com/Ren14/tsa1

parents 9084cf3f c4320b1a
No related branches found
No related tags found
No related merge requests found
# README # # API REST - Sello de Tiempo v1 #
This README would normally document whatever steps are necessary to get your application up and running. Esta aplicación está basada en el proyecto de Patricio Kumagae https://gitlab.bfa.ar/pkumagae/TsaAPI que está desarrollado con Python. La aplicación fue re escrita en **NodeJS** utilizando el framework de desarrollo **SailsJS**.
### What is this repository for? ### Permite interactuar con el smartContract https://gitlab.bfa.ar/pkumagae/SmartContractsOTS/blob/master/ProofOfExistence.sol que está deployado en:
**Ropsten**
**Rinkeby**
**Rsk**
**Blockchain Federal Argentina**
* Quick summary En el archivo custom/config.js.default se encuentran las direcciones y ABI del contrato deployado en cada blockchain mencionada.
* Version
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
### How do I get set up? ### ### Prerequisitos ###
NodeJS
Npm
* Summary of set up ### Cómo comenzar ? ###
* Configuration
* Dependencies
* Database configuration
* How to run tests
* Deployment instructions
### Contribution guidelines ### * Descargar el repositorio e ingresar
```
sudo git clone https://github.com/Ren14/tsa1.git
cd [nombre_repo]
```
* Writing tests * Instalar sails
* Code review ```
* Other guidelines sudo npm install -g sails
```
* Instalar dependencias
```
sudo npm install
```
### Who do I talk to? ### * Configurar el archivo custom. Los datos requeridos están comentados en el código del archivo.
```
sudo nano config/custom.js.default
```
* Reemplazar el nombre y quitar el default
```
sudo mv config/custom.js.default config/custom.js
```
* Repo owner or admin ### Testing de casos de uso ###
* Other community or team contact Para revisar los endpoints disponibles, visualizar el archivo config/routes.js
\ No newline at end of file
* Método sellado:
Se debe acceder por POST a http://localhost:1337/[nombre_blockchain]/stamp
y enviar un parámetro con el nombre **file_hash** que va a contener el hash a enviar.
* Método verificar:
Se debe acceder por GET a http://localhost:1337/[nombre_blockchain]/verify/[comprobante_ots]/[file_hash]
### Dudas ? ###
* renn.carp@gmail.com
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment