Personal project of a fictitious E-commerce, with the goal of studying the architecture, creation, and maintenance of a full-stack application (backend and frontend, database, etc.).
Projeto pessoal de um Ecommerce fictício, com o objetivo de estudar a arquitetura, criação e manunteção de uma aplicação full stack (backend e frontend, banco de dados, ETC).
As suas principais tecnologias, são:
git clone https://github.com/Odisseu93/top-commerce
cd top-commerce
docker compose up -d # in the root directory of the project / na pasta raiz
- Do not skip this step / Não pule esta esta etapa
Front-end
cd app/front-end # in the root directory of the project / na pasta raiz
yarn install
Back-end
cd app/back-end # in the root directory of the project / na pasta raiz
yarn install
After starting the server, access the port in your browser: Depois de iniciar o servidor, acesse a porta no seu navegador:
Swagger
localhost:8080/docs/api/
Front-end
localhost:3000
Database PORT: 3308
For illustration purposes only, be guided by the files and folder present in this repository / Meramente ilustrativo se guie pelo arquivos e pasta presente neste repositório
Back-end
.
├── Dockerfile
├── nodemon.json
├── package.json
├── src
│ ├── controllers
│ │ ├── ProductCategoryController.ts
│ │ ├── ProductController.ts
│ │ └── ProductFilterController.ts
│ ├── db
│ │ └── mysql
│ │ └── index.ts
│ ├── docs
│ │ └── swagger.json
│ ├── helpers
│ │ └── ProductCategory
│ │ ├── Validate.ts
│ │ └── registeredProducts.ts
│ ├── models
│ │ ├── Product.ts
│ │ └── ProductCategory.ts
│ ├── routes
│ │ ├── ProductCategoryRoutes.ts
│ │ ├── ProductFiltersRoutes.ts
│ │ ├── ProductRoutes.ts
│ │ └── docsRoutes.ts
│ ├── server.ts
│ └── types
│ ├── TypedRequestBody.ts
│ ├── TypedRequestQuery.ts
│ ├── TypedResponseJson.ts
│ ├── controllers
│ │ ├── Product
│ │ │ ├── RequestCreateType.ts
│ │ │ ├── RequestUpdateType.ts
│ │ │ └── index.ts
│ │ └── ProductFilter
│ │ ├── ProductFilterPriceInBetweenRequestType.ts
│ │ ├── ProductFilterRequestType.ts
│ │ └── index.ts
│ └── models
│ ├── ProductCategory
│ │ └── index.ts
│ └── Products
│ └── index.ts
├── tsconfig.json
└── yarn.lock
Font-end
.
├── Dockerfile
├── README.md
├── index.html
├── package.json
├── public
│ └── vite.svg
├── src
│ ├── App.css
│ ├── App.tsx
│ ├── assets
│ │ └── react.svg
│ ├── index.css
│ ├── main.tsx
│ └── vite-env.d.ts
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── yarn.lock