https://github.com/sofyan48/adrini_iot_platform
IOT PLATFORM
https://github.com/sofyan48/adrini_iot_platform
iot iot-platform platofrm
Last synced: 7 months ago
JSON representation
IOT PLATFORM
- Host: GitHub
- URL: https://github.com/sofyan48/adrini_iot_platform
- Owner: sofyan48
- License: mit
- Created: 2018-12-19T16:42:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:29:25.000Z (almost 3 years ago)
- Last Synced: 2025-02-19T14:07:48.707Z (8 months ago)
- Topics: iot, iot-platform, platofrm
- Language: Python
- Homepage: https://api.adrini.com
- Size: 81.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IOT_ADRINI
IOT PLATFORM ALL BOARD## Installing
## Environment File
Create New Environment File save to .env or move .env.example
```
mv .env.example .env
```
Value Environment File
```
### APP SETUP
APP_NAME = IOT_ADRINI
APP_HOST = 127.0.0.1
APP_PORT = 6969
SECRET_KEY = asdsagdasgdasf@asfdasgvdasda@#!@#!%$#%@#@@##
MEMCACHE_HOST=127.0.0.1
MEMCACHE_PORT=11211
FLASK_DEBUG = True### REDIS SETUP
FLASK_REDIS_URL = redis://:pass@127.0.0.1:6379/0### JWT SETUP
JWT_SECRET_KEY = wqertyudfgfhjhkcxvbnmn@123$32213### DATABASE SETUP
DB_NAME = db_name
DB_HOST = localhost
DB_PORT = 26257
DB_USER = root
DB_SSL = disable#### DOCS
SWAGGER_URL = '/api/docs'
SWAGGER_API_URL = 'http://127.0.0.1:6968/static/swagger.json'```
## Installing
At the time only support Python3 or newer.``` bash
pip3 install -r requirements.txt
```After Installing Requirement File, Next Install redis
Fedora Based
``` bash
dnf install redis redis-cli
```Debian based
``` bash
apt-get install redis redis-cli
```Setup Your Redis auth see your .env file And Then
``` bash
redis-cli
127.0.0.1:6379> CONFIG SET requirepass "pass"```
Runing Server
``` bash
sudo python manage.py server
```
# Cockroach DB
Installing CockroachDB Reference [action](https://www.cockroachlabs.com/docs/stable/)# Dockerize Development
If you using docker
## Environment File
Create New Environment File save to .env or move .env.example
```
mv .env.example .env
```
Value Environment File
```
### APP SETUP
APP_NAME = IOT_ADRINI
APP_HOST = 0.0.0.0
APP_PORT = 6969
SECRET_KEY = asdsagdasgdasf@asfdasgvdasda@#!@#!%$#%@#@@##
MEMCACHE_HOST=127.0.0.1
MEMCACHE_PORT=11211
FLASK_DEBUG = True### REDIS SETUP
FLASK_REDIS_URL = redis://:pass@session:6379/0### JWT SETUP
JWT_SECRET_KEY = wqertyudfgfhjhkcxvbnmn@123$32213### DATABASE SETUP
DB_NAME = db_name
DB_HOST = localhost
DB_PORT = 26257
DB_USER = root
DB_SSL = disable#### DOCS
SWAGGER_URL = '/api/docs'
SWAGGER_API_URL = 'http://127.0.0.1:6968/static/swagger.json'```
## Building Image
```
docker build .
```## Run Image
```
docker run -it -p 5000:5000 image sh run.sh 2
```## Using Compose
```
docker-compose up
```