Commit Graph

21 Commits

Author SHA1 Message Date
a28183ddd8
main: reorder
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 07:07:00 +03:00
40d981a4cd sql_app: main: Add tags and base url for admin/user
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 07:05:44 +03:00
08b8aafcf0 sql_app: auth by user not email 2022-04-13 06:21:10 +03:00
f1cbd6d265 jwt auth
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 05:24:06 +03:00
3153a7db8d sql_app: add username in regsiter
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-04 02:02:29 +03:00
866182c25e sql_app/models: fix inverted table links
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 15:51:36 +03:00
7dab731337 sql_app/schema: fix type error
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 14:55:39 +03:00
98c3f5416a sql_app/schema: fix type error
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 14:54:16 +03:00
64edc98a76 sql_app/schema: fix type error
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 14:51:26 +03:00
987087704a
gitignore: ignore IDE files
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-23 04:02:32 +03:00
cae0f350eb
remove binary files
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-23 04:01:44 +03:00
7d41fcf200 mosquitto_broker: MQTT broker/client sample server. also scrapped.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-23 03:59:30 +03:00
e633be8396
coap: coap server using libcoap. also scrapped.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-23 03:55:29 +03:00
8094b1fc77
aicoap: a sample server for coap. scrapped however.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-22 22:21:58 +03:00
ab30844d95
sql_app: implement password hashing when create_user is used.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-16 22:46:50 +03:00
75984d1f1f
sql_app: crypto: added crypto python helper fucntions
Idea is to isolate cryptography from database managment
	code.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-16 22:30:57 +03:00
3922d659da
sql_app: models: correct many-to-many relation between iotdev and users
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-16 22:29:34 +03:00
0d66c6f50f
sql_app: another api app to test
In sql_app/main.py, new path fucntions are tested
	for database connections, quary.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-06 16:13:50 +03:00
b0dc22070e
sql_app: basic models and schemas from FastAPI docs
- Classes in models describe tables in database

	- Classes in schemas desribe pydantic models to
	read from the API.

	- database provides a connection and sessions to
	the database.

	- crud exposes the interface to the database, i.e.
	actions we can take from the application onto the
	database

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-03 15:49:26 +03:00
0dfbda8d32
python requirments
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-03 14:45:09 +03:00
2c17903012
init: server workds with tls, needs database models
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-03 14:42:02 +03:00