Skip to content

Ecommerce fictício dockerizado, criado como Node.js, Express, React.js e mysql

Notifications You must be signed in to change notification settings

Odisseu93/top-commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Top Commerce

About / Sobre

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).

Tech stack / lista de tecnologias

As suas principais tecnologias, são:


Frontend


Backend


Database / Banco de daddos

Run locally / Rodar localmente

1 - Clone

git clone https://github.com/Odisseu93/top-commerce
cd top-commerce

2 - Run Docker compose / execute o Docker compose

docker compose up -d # in the root directory of the project / na pasta raiz 

3 - Install the project dependencies locally / Instale as dependecias do projeto localmente

- 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  

4 - Locahost

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

Filestruct / Estrutura de arquivos

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

Developer / Desenvolvedor

developer: Ulisses Silvério