Try live demo (Read-only mode)
Hello world in 5 minutes with AdminForth
Why AdminForth:
mkdir myadmin && cd myadmin
npx adminforth create-app
The most convenient way to add new features or fixes is using dev-demo
. It imports the source code of the repository and plugins so you can edit them and see changes on the fly.
Fork repo, pull it and do next:
cd adminforth
npm ci
npm run build
To run dev demo:
cd dev-demo
cp .env.sample .env
# this will install all official plugins and link adminforth package, if plugin installed it will git pull and npm ci
npm run install-plugins
# same for official adapters
npm run install-adapters
npm ci
npm run migrate
npm start
Open .prisma
file, modify it, and run:
npm run namemigration -- --name desctiption_of_changes
Make sure you have not adminforth
globally installed. If you have it, remove it:
npm uninstall -g adminforth
Then, in the root of the project, run once:
cd adminforth/adminforth
npm run build
This will automatically make an npm link to the adminforth
package in the root of the project.
Then, go to testing app, e.g. created with CLI, and use next command:
npx -g adminforth <your command under development>
This will always run latest version of adminforth package.