diff --git a/README.md b/README.md new file mode 100644 index 0000000..d66455c --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# Projet Sécurité INFO5A 2022 + +**Auteurs**: +- Baptiste Peupier +- Wilfried Vallée +- Mihary Ranaivoson +- Yûki Vachot + +**Branches**: +- db1: Base de données Utilisateur +- db2: Base de données Log +- backend: Flask Backend +- frontend: Serveur Angular avec un autre serveur Flask Backend communiquant avec la "branche" backend +- development: non mis à jour ne pas cloner + +docker compose up pour chaque branche diff --git a/backend/__pycache__/app.cpython-310.pyc b/backend/__pycache__/app.cpython-310.pyc deleted file mode 100644 index 56671cd..0000000 Binary files a/backend/__pycache__/app.cpython-310.pyc and /dev/null differ diff --git a/backend/__pycache__/app.cpython-38.pyc b/backend/__pycache__/app.cpython-38.pyc deleted file mode 100644 index 951bfbe..0000000 Binary files a/backend/__pycache__/app.cpython-38.pyc and /dev/null differ diff --git a/backend/__pycache__/config.cpython-310.pyc b/backend/__pycache__/config.cpython-310.pyc deleted file mode 100644 index 6ca6f0b..0000000 Binary files a/backend/__pycache__/config.cpython-310.pyc and /dev/null differ diff --git a/backend/__pycache__/config.cpython-38.pyc b/backend/__pycache__/config.cpython-38.pyc deleted file mode 100644 index 6e1dae2..0000000 Binary files a/backend/__pycache__/config.cpython-38.pyc and /dev/null differ diff --git a/backend/__pycache__/fictive_users.cpython-38.pyc b/backend/__pycache__/fictive_users.cpython-38.pyc deleted file mode 100644 index 477bdc3..0000000 Binary files a/backend/__pycache__/fictive_users.cpython-38.pyc and /dev/null differ diff --git a/backend/application/__pycache__/__init__.cpython-310.pyc b/backend/application/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index 4f97792..0000000 Binary files a/backend/application/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/backend/application/__pycache__/__init__.cpython-38.pyc b/backend/application/__pycache__/__init__.cpython-38.pyc deleted file mode 100644 index b057e9d..0000000 Binary files a/backend/application/__pycache__/__init__.cpython-38.pyc and /dev/null differ diff --git a/backend/application/__pycache__/api_functions.cpython-310.pyc b/backend/application/__pycache__/api_functions.cpython-310.pyc deleted file mode 100644 index 037557d..0000000 Binary files a/backend/application/__pycache__/api_functions.cpython-310.pyc and /dev/null differ diff --git a/backend/application/__pycache__/api_functions.cpython-38.pyc b/backend/application/__pycache__/api_functions.cpython-38.pyc deleted file mode 100644 index 9f49edf..0000000 Binary files a/backend/application/__pycache__/api_functions.cpython-38.pyc and /dev/null differ diff --git a/backend/application/__pycache__/logs_model.cpython-310.pyc b/backend/application/__pycache__/logs_model.cpython-310.pyc deleted file mode 100644 index c317af2..0000000 Binary files a/backend/application/__pycache__/logs_model.cpython-310.pyc and /dev/null differ diff --git a/backend/application/__pycache__/logs_model.cpython-38.pyc b/backend/application/__pycache__/logs_model.cpython-38.pyc deleted file mode 100644 index f7aa63a..0000000 Binary files a/backend/application/__pycache__/logs_model.cpython-38.pyc and /dev/null differ diff --git a/backend/application/__pycache__/responses.cpython-310.pyc b/backend/application/__pycache__/responses.cpython-310.pyc deleted file mode 100644 index 05d2496..0000000 Binary files a/backend/application/__pycache__/responses.cpython-310.pyc and /dev/null differ diff --git a/backend/application/__pycache__/responses.cpython-38.pyc b/backend/application/__pycache__/responses.cpython-38.pyc deleted file mode 100644 index 7975ba1..0000000 Binary files a/backend/application/__pycache__/responses.cpython-38.pyc and /dev/null differ diff --git a/backend/application/__pycache__/routes.cpython-310.pyc b/backend/application/__pycache__/routes.cpython-310.pyc deleted file mode 100644 index d5552d7..0000000 Binary files a/backend/application/__pycache__/routes.cpython-310.pyc and /dev/null differ diff --git a/backend/application/__pycache__/routes.cpython-38.pyc b/backend/application/__pycache__/routes.cpython-38.pyc deleted file mode 100644 index 7a95df1..0000000 Binary files a/backend/application/__pycache__/routes.cpython-38.pyc and /dev/null differ diff --git a/backend/application/__pycache__/sessionJWT.cpython-310.pyc b/backend/application/__pycache__/sessionJWT.cpython-310.pyc deleted file mode 100644 index 2b9734d..0000000 Binary files a/backend/application/__pycache__/sessionJWT.cpython-310.pyc and /dev/null differ diff --git a/backend/application/__pycache__/sessionJWT.cpython-38.pyc b/backend/application/__pycache__/sessionJWT.cpython-38.pyc deleted file mode 100644 index 2ea8bca..0000000 Binary files a/backend/application/__pycache__/sessionJWT.cpython-38.pyc and /dev/null differ diff --git a/backend/application/__pycache__/users_model.cpython-310.pyc b/backend/application/__pycache__/users_model.cpython-310.pyc deleted file mode 100644 index e386a6a..0000000 Binary files a/backend/application/__pycache__/users_model.cpython-310.pyc and /dev/null differ diff --git a/backend/application/__pycache__/users_model.cpython-38.pyc b/backend/application/__pycache__/users_model.cpython-38.pyc deleted file mode 100644 index 43995d7..0000000 Binary files a/backend/application/__pycache__/users_model.cpython-38.pyc and /dev/null differ diff --git a/backend/init-db1.sql b/backend/init-db1.sql deleted file mode 100644 index bbec183..0000000 --- a/backend/init-db1.sql +++ /dev/null @@ -1,13 +0,0 @@ --- Table: users - -CREATE TABLE IF NOT EXISTS users -( - id serial PRIMARY KEY, - email character varying(320) NOT NULL, - nickname character varying(50) NOT NULL, - hash_pass bytea NOT NULL, - salt bytea NOT NULL, - is_admin boolean NOT NULL DEFAULT FALSE -); - -INSERT INTO users VALUES(0,'admin@admin.admin','Admin',decode('e5ed79b503704ed20a1d250770db68182118de7fe0236db9bbfb0dd9684087d6', 'hex'),decode('7012f69f1ac7c23c5dca498c30fa94527b507cc9e40fab9bae284d1465a37724', 'hex'),TRUE); \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 1dc0990..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: '3.8' - -services: - flaskaled-srv1: - image: postgres:latest - container_name: flaskaled-srv1 - ports: - - "5433:5432" - volumes: - - ./backend/init-db1.sql:/docker-entrypoint-initdb.d/init-db1.sql - environment: - - POSTGRES_HOST=flaskaled-srv1 - - POSTGRES_PORT=5432 - - POSTGRES_DB=flaskaledDb1 - - POSTGRES_USER=flaskaled1 - - POSTGRES_PASSWORD=aled1 - restart: unless-stopped \ No newline at end of file