Manual installation
Install Mercur backend on your local machine
There are two ways of installing Mercur: the CLI script or manual installation.
Follow these steps to install and run Mercur backend on your operating system:
Step 1: Clone the Mercur repository:
Step 2: Navigate to the Mercur directory and execute the following command:
Step 3: Go to the backend directory and prepare .env
file
Step 4: Configure database credentials in the .env
file
Do not delete $DB_NAME
from the connection string. You’ll be prompted to
choose database name during the next step.
Step 5: Setup database and run migrations
Step 6: Generate OpenApi specs from the Mercur backend
Step 7: Create admin user
Optional step: Run the seed script. This will set up all necessary configuration, along with example seller and products. Recommended for new users.
Default seller credentials (to login into vendor panel):
Step 8: Go to the root directory and generate http-client
class
Step 9: Run Turborepo