|
3 лет назад | |
---|---|---|
data | 3 лет назад | |
src | 3 лет назад | |
.babelrc.js | 3 лет назад | |
.env.template | 3 лет назад | |
.gitignore | 3 лет назад | |
Dockerfile | 3 лет назад | |
README.md | 3 лет назад | |
develop.sh | 3 лет назад | |
docker-compose.yml | 3 лет назад | |
medusa-config.js | 3 лет назад | |
package.json | 3 лет назад | |
yarn.lock | 3 лет назад |
This repo provides the skeleton to get you started with using Medusa. Follow the steps below to get ready.
This starter has minimal prerequisites and most of these will usually already be installed on your computer.
Install the Medusa CLI
npm install -g @medusajs/medusa
yarn global add @medusajs/medusa
Create a new Medusa project
medusa new my-medusa-store
Run your project
cd my-medusa-store
medusa develop
Your local Medusa server is now running on port 9000.
Create a new Medusa project
git clone https://https://github.com/medusajs/medusa-starter-default.git
Update your medusa config:
module.exports = {
projectConfig: {
redis_url: REDIS_URL,
// For more production-like environment install PostgresQL
database_url: DATABASE_URL,
database_type: "postgres",
// database_database: "./medusa-db.sql",
// database_type: "sqlite",
store_cors: STORE_CORS,
admin_cors: ADMIN_CORS,
},
plugins,
};
Run your project
docker compose up
Your local Medusa server is now running on port 9000.
curl -X GET localhost:9000/store/products | python -m json.tool
After the seed script has run you will have the following things in you database:
Visit docs.medusa-commerce.com for further guides.
Website | Notion Home | Twitter | Docs