Ensure that you have Node.js and npm installed on your machine.
- Clone the repository to your local machine:
git clone https://github.com/asilor/medusa
- Navigate to the project directory:
cd medusa
- Install dependencies:
npm install
Create a .env
file in the root of the project directory. Add the necessary environment variables.
STORE_CORS=
ADMIN_CORS=
AUTH_CORS=
JWT_SECRET=
COOKIE_SECRET=
WORKER_MODE=server
DISABLE_MEDUSA_ADMIN=false
MEDUSA_BACKEND_URL=http://localhost:9000
DATABASE_URL=
REDIS_URL=
Start the development server:
npm run dev
This will start the medusa server at http://localhost:9000 and the medusa admin at http://localhost:9000/app.
By commiting the changes the application will be automatically deployed.