vasemkin / mvp-ecom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Ecommerce Monorepo

πŸ”§ Setting up Local Development

Required:

This is an Nx based monorepo. Visit the Nx Documentation to learn more.

Install project:

git clone https://github.com/vasemkin/mvp-ecom.git
cd mv-ecom
yarn

Launch the databse and apps:

docker-compose up d
yarn dev

The backend will generate a swagger file, sync it:

yarn ui:gen-api

This will generate an RTK Query api client with hooks. For additional scripts navigate to root package.json

The site is running at http://localhost:4200. Reload the page once to see the effects. Hot Reloading supported afterwards. Open the source code and start editing!

The api is available at http://localhost:4200/api/

Swagger UI is served at http://localhost:4200/api/docs/

Architecture

./
β”œβ”€β”€ apps/app/            // UI App with React
β”œβ”€β”€ apps/server/         // Server with NestJS
β”œβ”€β”€ libs/products        // Some of the common types
β”œβ”€β”€ envs/                // environment variables
└── public/              // Static assets to serve from the server

About


Languages

Language:TypeScript 82.4%Language:CSS 15.1%Language:HTML 1.4%Language:JavaScript 0.7%Language:Shell 0.4%