Skip to content

Latest commit

 

History

History
126 lines (91 loc) · 1.84 KB

README.md

File metadata and controls

126 lines (91 loc) · 1.84 KB

Medusa Game Store

Medusa Game Store

About

Participants

Github : @studiojms

Description

This is a game store storefront powered by Vite+React+Typescript+Tailwind CSS powered by MedusaJS

Preview

Demo

Set Up Project

In order to execute the project, follow the instructions below:

Prerequisites

Instal Project

Backend

  1. Go to the backend dir

    cd backend
  2. Install dependencies

    npm install

    or

    yarn
  3. Seed the database

    medusa seed -f data/seed.json
  4. Start the server

    medusa develop
Avoiding CORS errors

To avoid CORS errors when running locally, make sure to update your .env file, setting STORE_CORS variable correctly, as follows:

STORE_CORS=http://localhost:5173

Admin

  1. Go to the admin dir

    cd ../admin
  2. Install dependencies

    npm install

    or

    yarn
  3. Start the admin

    npm run start

    or

    yarn start
  4. In the browser, go to localhost:7000 and use the following credentials:

  • email admin@medusa-test.com
  • password supersecret

Frontend

  1. Go to the frontend dir

    cd ../frontend
  2. Install dependencies

    npm install

    or

    yarn
  3. Start the frontend

    npm run dev

    or

    yarn dev
  4. In the browser, go to localhost:5173

Resources