/mvp-ecom

Primary LanguageTypeScript

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