Skip to content

MaxymilianSa/medusa-store-starter

Repository files navigation

Medusa Store Starter 🚀

Table of Contents

Technologies Used

  • Express.js
  • Next.js
  • TailwindCSS

Frontend naming Convention

We will use a PascalCase. Names in pascal case start with a capital letter. In case of the names with multiple words, all words will start with capital letters.

Here are some examples of pascal case: FirstName and LastName.

Directory Structure

  • apps/backend - folder with api files
  • apps/frontend - folder with store files
  • src/packages - folder with the all global settings

Prerequisites

Install project

  1. Clone repository
  2. Run yarn to install project dependencies.
  3. Run yarn workspace backend install to install backend dependencies.
  4. Make copy of apps/backend/.env.example file with name apps/backend/.env (e.g. by executing command cp apps/backend/.env.example apps/backend/.env)
  5. Start your postgresql database.
  6. Go to apps/backend and run migrations by executing command npx @medusajs/medusa-cli migrations run
  7. Back to root directory and run seed yarn workspace backend seed to set default data.
  8. Run yarn workspace frontend install to install frontend dependencies.
  9. Go to apps/frontend and make copy of apps/frontend/.env.example file with name apps/frontend/.env (e.g. by executing command cp apps/frontend/.env.example apps/frontend/.env)
  10. Open .env file and edit api url (prefix API_BASE_URL)
  11. Run yarn dev to run dev server or yarn build for production purposes.

Admin panel

To open admin panel u need to open http://localhost:8000/app/login.

Tests

  1. Run yarn dev to run dev server
  2. Go to frontend workspace by executing command cd apps/frontend.
  3. Run yarn cy:test to use tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •