Medusa Installation
Install Node.js (version 20 or above). Now Ubuntu will install a lower version when trying to install via - "sudo apt install nodejs" so follow the below method. You may install the latest version available by checking the download section of Node.js website.
Next Install git CLI
For latest version you may add below PPA and update git
Finally we will need PostgreSQL for database management - click here for installation instructions
Once PostgreSQL is installed we need to create and new user and assign superuser rights to the user. Then we need to create a new Database and make the new user, the owner of the new Database.
Go to DB console
Create new user (password needs single quotes)
Grant SUPERUSER rights (this is needed, else Medusa installation fails while performing database migration)
Create new database
Now we begin Medusa Installation using below command. Note we need to have a database already created in the previous step and have its user name, password and database name
Then follow the prompt and enter your project name, whether you want to create store front (Next.js based). After about 5 - 10 minutes your installation will complete and your server will start.
Last updated