Skip to content
Snippets Groups Projects
Unverified Commit 6b2a66a8 authored by Renzo Mauro Ontivero's avatar Renzo Mauro Ontivero Committed by GitHub
Browse files

Update README.md

parent 1a485da9
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
* Version
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
En el archivo custom/config.js.default se encuentran las direcciones y ABI del contrato deployado en cada blockchain mencionada.
### How do I get set up? ###
### Prerequisitos ###
NodeJS
Npm
* Summary of set up
* Configuration
* Dependencies
* Database configuration
* How to run tests
* Deployment instructions
### Cómo comenzar ? ###
### Contribution guidelines ###
* Descargar el repositorio e ingresar
```
cd [nombre_repo]
```
* Writing tests
* Code review
* Other guidelines
* Instalar sails
```
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
* Other community or team contact
\ No newline at end of file
### Testing de casos de uso ###
Para revisar los endpoints disponibles, visualizar el archivo config/routes.js
* 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