https://github.com/bunsdev/thunder-storage
https://github.com/bunsdev/thunder-storage
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bunsdev/thunder-storage
- Owner: BunsDev
- License: mit
- Created: 2022-07-11T00:04:53.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-11T00:05:06.000Z (almost 4 years ago)
- Last Synced: 2025-08-30T00:17:05.806Z (10 months ago)
- Language: TypeScript
- Size: 175 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ThunderStorage
This project solves the problem of storing data onto the blockchain,
an extremely expensive endeavor. It uses a normal SQL database to load
and store data, but adds in a cryptographic hash published onto the blockchain
to ensure immutability of the data.
At the same time, currently it only allows authorized individuals to save the data
because the operator of this will be paying for all gas fees involved with the
storage.
## Tools
- Typescript
- NestJs
- Typeorm
- Etherjs
- Redoc
## Overview
The backend is split into modules with a v1 module serving our api routes.
The Auth module is responsible for creating and validating jwts limiting access to our routes.
The Datasaver module is responsible for taking in data, saving it into the db and onto the chain.
The Polling module is the specifically designed to take in survey data and saving it.
## Setup
Configurations are located in `backend/src/config`
The way its setup only supports 4 environment, but can be changed for other usecase
`cd backend`
`yarn install or npm install`
`yarn db:migrate`
`yarn start or npm start`
Tests can be run with
`yarn test or npm test`