# Hoji Storefront

[![Netlify Status](https://api.netlify.com/api/v1/badges/4239c413-cb25-4328-9d52-b41e45609452/deploy-status)](https://app.netlify.com/sites/hoji-storefront/deploys)

This is the DApp for the Hoji Storefront.

# Development

1. Clone the repository
2. Make sure you have node and yarn installed
3. Run `yarn` to install dependencies
4. Run `yarn start` to start the development of the frontend and it will automatically open the web frontend in your browser.
5. This is a serverless application, so you can use the cloud functions to do a customized API.
   1. Use `yarn cloud:run` to develop your cloud functions.
   2. User `yarn cloud:logs` to see the logs
6. For the code hierarchy please refer to the following

```
.
├── bin
├── build
├── CODING_STYLE.md
├── config-overrides.js
├── CONTRIBUTING.md
├── data
├── functions --> this is where we put the cloud functions
├── jsconfig.json
├── LICENSE.md
├── node_modules
├── package.json
├── public
├── README.md
├── src
├── Truffle --> this contains the smart contract deelopment using Truffle
├── yarn-error.log
└── yarn.lock

```

## Testing subdomains locally

You can configure your `/etc/hosts` like the following

```
127.0.0.1  localhost
127.0.0.1  test.localhost
127.0.0.1  test1.localhost
127.0.0.1  test2.localhost
127.0.0.1  empeje.localhost
```

Now you can open with something like `test1.localhost:3000` and set your store name to `test1` when register to the app locally.

# Authors

- [empeje](https://github.com/empeje)
- [vyredo](https://github.com/vyredo)

# License

Hojilabs (c) 2022 All rights reserved.
