It's recommended to fix security vulnerabilities in dependencies using the command
```sh
$ npm audit fix
```
In the project directory, you can run:
```sh
$ npm start
```
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
```sh
$ npm run build
```
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
## Development
* js-ipfs >= 0.41
To be able to use the orbitdb database of the [carboncreditsbacklog](https://gitlab.com/deca-currency/carboncreditsbacklog) repository which is implemented in [go-ipfs](https://github.com/ipfs/go-ipfs) it is necessary to use circuit relay because react uses [js-ipfs](https://github.com/ipfs/js-ipfs) and add this configuration in the initialization of ipfs
```sh
"relay": {
"enabled": true,
"hop": {
"enabled": true
}
}
```
It is also necessary to enable the sending through WebSocket in the go-ipfs nodes to be able to make the connection and replicate the database. Once the WebSocket is enabled, the connection is made manually before connecting to the database.
## Deploy
### Prerequisites
* Nginx >= 1.14.0
* Certbot >= 1.6
* serve >= 11.3.2
* pm2 >= 4.4.0
Install Nginx
```sh
$ sudo apt update
$ sudo apt install nginx
```
Install Certbot
```sh
$ sudo add-apt-repository ppa:certbot/certbot
```
**clone the repo in /var/www/ and switch to decasearch directory:**