first commit
This commit is contained in:
		
							
								
								
									
										108
									
								
								docker-compose.dev.yml
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										108
									
								
								docker-compose.dev.yml
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,108 @@ | |||||||
|  | version: '3.8' | ||||||
|  |  | ||||||
|  | volumes: | ||||||
|  |   eamco_cache: | ||||||
|  |  | ||||||
|  | name: eamco | ||||||
|  | services: | ||||||
|  |  | ||||||
|  |   payment: | ||||||
|  |     container_name: eamco-payment | ||||||
|  |     restart: always | ||||||
|  |     build: | ||||||
|  |         context: ../eamco_payment | ||||||
|  |         dockerfile: Dockerfile | ||||||
|  |     volumes: | ||||||
|  |         - ../eamco_payment:/app | ||||||
|  |     ports: | ||||||
|  |       - '4052:4052' | ||||||
|  |     command: 'python3 app.py --host 0.0.0.0' | ||||||
|  |  | ||||||
|  |   backend_office: | ||||||
|  |     container_name: eamco-backend-office-dev | ||||||
|  |     restart: always | ||||||
|  |     build: | ||||||
|  |         context: ../eamco_office_api | ||||||
|  |         dockerfile: Dockerfile | ||||||
|  |     volumes: | ||||||
|  |         - ../eamco_office_api:/app | ||||||
|  |     ports: | ||||||
|  |       - '4056:4056' | ||||||
|  |     command: 'python3 app.py --host 0.0.0.0' | ||||||
|  |  | ||||||
|  |   auto: | ||||||
|  |    container_name: eamco-backend-auto | ||||||
|  |    restart: on-failure | ||||||
|  |    build: | ||||||
|  |        context: ../eamco_auto | ||||||
|  |        dockerfile: Dockerfile | ||||||
|  |    volumes: | ||||||
|  |        - ../eamco_auto:/app | ||||||
|  |    ports: | ||||||
|  |      - '4053:4053' | ||||||
|  |    command: 'python3 app.py --host 0.0.0.0' | ||||||
|  |  | ||||||
|  |  | ||||||
|  |   frontend: | ||||||
|  |      container_name: eamco-frontend-dev | ||||||
|  |      restart: on-failure | ||||||
|  |      build: | ||||||
|  |          context: ../eamco_frontend | ||||||
|  |          dockerfile: Dockerfile | ||||||
|  |      volumes: | ||||||
|  |          - ../eamco_frontend:/app | ||||||
|  |      ports: | ||||||
|  |        - '5173:5173' | ||||||
|  |      command: 'vite dev --host --port 5173' | ||||||
|  |  | ||||||
|  | #  backend_service: | ||||||
|  | #    container_name: eamco-backend-service-dev | ||||||
|  | #    restart: on-failure | ||||||
|  | #    build: | ||||||
|  | #        context: ../eamco_service_api | ||||||
|  | #        dockerfile: Dockerfile | ||||||
|  | #    volumes: | ||||||
|  | #        - ../eamco_service_api:/app | ||||||
|  | #    depends_on: | ||||||
|  | #        - redis | ||||||
|  | #    ports: | ||||||
|  | #      - '4058:4058' | ||||||
|  | #    command: 'python3 app.py --host 0.0.0.0' | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |   # redis: | ||||||
|  |   #     container_name: eamco-redis-dev | ||||||
|  |   #     image: redis:latest | ||||||
|  |   #     command: redis-server --save 20 1 --loglevel warning | ||||||
|  |   #     restart: on-failure | ||||||
|  |   #     ports: | ||||||
|  |   #       - '6379:6379' | ||||||
|  |   #     env_file: | ||||||
|  |   #           - .env | ||||||
|  |   #     volumes: | ||||||
|  |   #       - eamco_cache:${CURRENT_DIRECTORY}/eamco_deploy/dbdata/redisdb | ||||||
|  |  | ||||||
|  |   # database: | ||||||
|  |   #   container_name: postgres_eamco | ||||||
|  |   #   image: postgres:latest | ||||||
|  |   #   restart: always | ||||||
|  |   #   logging: | ||||||
|  |   #     options: | ||||||
|  |   #       max-size: 10m | ||||||
|  |   #       max-file: "3" | ||||||
|  |   #   environment: | ||||||
|  |   #     - POSTGRES_USER=postgres | ||||||
|  |   #     - POSTGRES_PASSWORD=postgres | ||||||
|  |   #   env_file: | ||||||
|  |   #     - .env | ||||||
|  |   #   ports: | ||||||
|  |   #     - '5432:5432' | ||||||
|  |   #   volumes:  | ||||||
|  |   #     - ${CURRENT_DIRECTORY}/eamco_deploy/dbdata/db:/var/lib/postgresql/data | ||||||
|  |   #     - ${CURRENT_DIRECTORY}/eamco_deploy/dbdata/init.sql:/docker-entrypoint-initdb.d/init.sql | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
							
								
								
									
										46
									
								
								item.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								item.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | |||||||
|  |  | ||||||
|  | eamco-payment             | { | ||||||
|  | eamco-payment             |   "active": true, | ||||||
|  | eamco-payment             |   "attributes": [], | ||||||
|  | eamco-payment             |   "created": 1705000360, | ||||||
|  | eamco-payment             |   "default_price": null, | ||||||
|  | eamco-payment             |   "description": "One Gallon of Oil", | ||||||
|  | eamco-payment             |   "features": [], | ||||||
|  | eamco-payment             |   "id": "prod_PMC470YUMG8ecN", | ||||||
|  | eamco-payment             |   "images": [], | ||||||
|  | eamco-payment             |   "livemode": false, | ||||||
|  | eamco-payment             |   "metadata": {}, | ||||||
|  | eamco-payment             |   "name": "Oil", | ||||||
|  | eamco-payment             |   "object": "product", | ||||||
|  | eamco-payment             |   "package_dimensions": null, | ||||||
|  | eamco-payment             |   "shippable": false, | ||||||
|  | eamco-payment             |   "statement_descriptor": null, | ||||||
|  | eamco-payment             |   "tax_code": null, | ||||||
|  | eamco-payment             |   "type": "service", | ||||||
|  | eamco-payment             |   "unit_label": null, | ||||||
|  | eamco-payment             |   "updated": 1705000360, | ||||||
|  | eamco-payment             |   "url": null | ||||||
|  | eamco-payment             | } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | eamco-payment             |   "active": true, | ||||||
|  | eamco-payment             |   "billing_scheme": "per_unit", | ||||||
|  | eamco-payment             |   "created": 1705000631, | ||||||
|  | eamco-payment             |   "currency": "usd", | ||||||
|  | eamco-payment             |   "custom_unit_amount": null, | ||||||
|  | eamco-payment             |   "id": "price_1OXTkZJznCGgUo9kIoz37lwg", | ||||||
|  | eamco-payment             |   "livemode": false, | ||||||
|  | eamco-payment             |   "lookup_key": null, | ||||||
|  | eamco-payment             |   "metadata": {}, | ||||||
|  | eamco-payment             |   "nickname": null, | ||||||
|  | eamco-payment             |   "object": "price", | ||||||
|  | eamco-payment             |   "product": "prod_PMC8wqJVfQTTy3", | ||||||
|  | eamco-payment             |   "recurring": null, | ||||||
|  | eamco-payment             |   "tax_behavior": "unspecified", | ||||||
|  | eamco-payment             |   "tiers_mode": null, | ||||||
|  | eamco-payment             |   "transform_quantity": null, | ||||||
|  | eamco-payment             |   "type": "one_time", | ||||||
|  | eamco-payment             |   "unit_amount": 350, | ||||||
|  | eamco-payment             |   "unit_amount_decimal": "350" | ||||||
|  | eamco-payment             | } | ||||||
							
								
								
									
										46
									
								
								project_eamco.code-workspace
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										46
									
								
								project_eamco.code-workspace
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,46 @@ | |||||||
|  | { | ||||||
|  | 	"folders": [{ | ||||||
|  | 			"path": "./eamco_office_api" | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			"path": "./eamco_frontend" | ||||||
|  | 		}, | ||||||
|  |  | ||||||
|  | 		{ | ||||||
|  | 			"path": "./eamco_auto" | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			"path": "./eamco_deploy" | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			"path": "./venv" | ||||||
|  | 		} | ||||||
|  | 	], | ||||||
|  | 	"settings": { | ||||||
|  | 		"editor.parameterHints.enabled": true, | ||||||
|  | 		"python.defaultInterpreterPath": "/media/king/storage2/project_eamco/venv/bin/python3", | ||||||
|  | 		"editor.bracketPairColorization.enabled": true, | ||||||
|  | 		"editor.guides.bracketPairs": true, | ||||||
|  | 		"editor.formatOnSave": true, | ||||||
|  | 		"prettier.singleQuote": true, | ||||||
|  | 		"prettier.printWidth": 70, | ||||||
|  | 		"editor.codeActionsOnSave": { | ||||||
|  | 			"source.fixAll.eslint": true | ||||||
|  | 		}, | ||||||
|  | 		"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue"], | ||||||
|  | 		"typescript.tsdk": "node_modules/typescript/lib", | ||||||
|  | 	}, | ||||||
|  |  | ||||||
|  | 	"extensions": { | ||||||
|  | 		"recommendations": [ | ||||||
|  | 			"aaron-bond.better-comments", | ||||||
|  | 			"ms-vscode-remote.remote-ssh", | ||||||
|  | 			"vscode-icons-team.vscode-icons", | ||||||
|  | 			"russelldavis.better-pageup-pagedown", | ||||||
|  | 			"ms-python.python", | ||||||
|  | 			"kevinrose.vsc-python-indent", | ||||||
|  | 			"zignd.html-css-class-completion", | ||||||
|  | 			"bradlc.vscode-tailwindcss" | ||||||
|  | 		] | ||||||
|  | 	}, | ||||||
|  | } | ||||||
							
								
								
									
										18
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | flask | ||||||
|  | flask_sqlalchemy | ||||||
|  | flask_session | ||||||
|  | flask-login | ||||||
|  | flask-moment | ||||||
|  | flask-paranoid | ||||||
|  | flask-bcrypt | ||||||
|  | flask-cors | ||||||
|  | flask_marshmallow | ||||||
|  | gunicorn | ||||||
|  | python-dateutil | ||||||
|  | python-dotenv | ||||||
|  | marshmallow-sqlalchemy | ||||||
|  | psycopg2-binary | ||||||
|  | redis | ||||||
|  | sqlalchemy | ||||||
|  | flask_wtf | ||||||
|  | flask_mail | ||||||
		Reference in New Issue
	
	Block a user