Github : @studiojms
This is a game store storefront powered by Vite+React+Typescript+Tailwind CSS powered by MedusaJS
In order to execute the project, follow the instructions below:
- Medusa CLI (
npm install -g @medusajs/medusa-cli
) . - Node JS (https://node.org/)
-
Go to the backend dir
cd backend
-
Install dependencies
npm install
or
yarn
-
Seed the database
medusa seed -f data/seed.json
-
Start the server
medusa develop
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
-
Go to the admin dir
cd ../admin
-
Install dependencies
npm install
or
yarn
-
Start the admin
npm run start
or
yarn start
-
In the browser, go to
localhost:7000
and use the following credentials:
- email
admin@medusa-test.com
- password
supersecret
-
Go to the frontend dir
cd ../frontend
-
Install dependencies
npm install
or
yarn
-
Start the frontend
npm run dev
or
yarn dev
-
In the browser, go to
localhost:5173