https://github.com/karitham/idiot
https://github.com/karitham/idiot
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/karitham/idiot
- Owner: karitham
- License: isc
- Created: 2023-05-31T13:23:52.000Z (almost 2 years ago)
- Default Branch: prod
- Last Pushed: 2023-06-30T08:07:52.000Z (almost 2 years ago)
- Last Synced: 2025-01-22T05:29:46.599Z (4 months ago)
- Language: Go
- Size: 2.35 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iDIoT
iDIoT is the i of the iPhone (or the iBlitzcrank), but with IoT and Domotics.
## Usage
We host versions for your own use on our server, and have a [demo hosted version](https://web.idiot.0xf.fr).
To use it yourself, you will need to have installed:
- Docker Compose
- NodeJSYou would also need some microcontrollers with sensors to actually gather data from, but we are planning on having a demo for this that doesn't require microcontrollers.
The default values are not production safe, do not hesitate to contact us if you want to deploy a production set-up and we would be happy to assist.
All of the infrastructure can be simply started with `docker compose up -d` from the root of the repo
To get the frontend running, you will need to edit the `API_URL` on the frontend side to point to your deployment.
On windows, you will have to manually go edit the [`client.ts`](./front/src/api/client.ts) file, and on unix you can use this script.
```sh
# We replace the demo api with a local one.
sed -i "s~'https://api.idiot.0xf.fr/v1'~'http://localhost:7667/v1'~" ./front/src/api/client.ts
```Once that's done, you just have to create yourself a user;
```sh
docker exec api ./main db user add --admin --name $MY_NAME --email $MY_EMAIL --password $MY_PASSWORD
```Now, all the infrastructure should be ready to welcome you, and you only have to run the frontend.
```sh
cd front; npm i; npm run dev
```The frontend should then be available at `http://localhost:5173` and you can login with your credentials