virb30 / lml-commerce

2 stars 0 forks source link

LML Commerce

An eCommerce project to practice and study concepts like, but not limited to:

Requirements

Contents

This repo is composed by all lml-commerce components, including but not limited to:

How to develop

  1. clone/fork this repository
  2. install dependencies
  3. rename .env.example and set your environment variables
  4. start database container
  5. run tests
  6. start application
git clone https://github.com/virb30/lml-commerce.git
cd lml-commerce
npm install
mv backend/.env.example backend/.env
docker compose up -d
npm run test:backend
npm run dev

This will start all packages of the project (backend and frontend)

Instructions about dependencies install

If you want to install a dependency that will be only available in one workspace (backend or frontend) and not globally use the --prefix option, eg:

npm install --prefix frontend date-fns 

This command will install the date-fns library just for the frontend workspace.