If you would like to hack on MUI Toolpad or want to run the latest version, you can follow these steps:
- git
- node.js
- Docker
- docker-compose
-
Start a local database:
docker-compose -f ./docker-compose.dev.yml up -d
You can skip this step if you already have a development database available by other means. Use the following command to stop the running container:
docker-compose -f ./docker-compose.dev.yml down
-
Install dependencies:
yarn install
-
Create a
.env
file in the root of the projectTOOLPAD_DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres # For a custom port: # PORT=3004 # EXTERNAL_URL=http://localhost:3004/
-
Now you can run the MUI Toolpad dev command to start the application
yarn dev
-
Open
http://localhost:3000/
in your browser.
-
Changes that you make to the prisma model will be automatically compiled, but you'll have to push them to the db manually, either by restarting the
yarn dev
command, or by runningyarn prisma db push
-
In some cases, after the schema changes, the app may not start up and you may see the message:
⚠️ There might be data loss when applying the changes:
This means your database is out of sync with the prisma schema and can't be synchronized without data loss. You can synchronise the database manually using:
yarn prisma db push --accept-data-loss
Please have a look at our general guidelines for sending pull requests here and here.
See RELEASE.md