Example application using adminjs
You can check out the current demo version at: https://demo.adminjs.co
Login: admin@example.com
Password: password
Install Docker if you don't have it: https://docs.docker.com/desktop/#download-and-install
Run:
$ docker-compose up -dto setup databases.
Make sure your .env file is configured. If you didn't do any changes to docker-compose.yml file,
the default contents of the .env file should work for you.
First, install all dependencies
yarn install --frozen-lockfileMake sure you have all environmental variables set up (read the previous paragraph).
Then create postgres database and run migrations:
$ npx prisma generate # # this sets up Prisma Client in your node_modules
$ yarn migration:upNote: If you see the error below when Prisma MySQL migration is run:
Error: P1017: Server has closed the connection.
Please wait a minute or two for the MySQL server to start and retry.
In the end, you can launch the app
$ yarn build:watch # keep it running if developing
$ yarn start:dev # in a separate terminal tab, concurrentlyBy default the app will be available under: http://localhost:3000/admin
The best way of developing the app is to do this via https://github.com/SoftwareBrothers/adminjs-dev.
Alternatively, you can fork and clone each repository separately and link them using:
yarn linknpm link
to see your local changes.
yarn sequelize migration:generate --name inityarn sequelize db:migrateyarn sequelize db:migrate:undo
yarn typeorm migration:generate -n inityarn typeorm migration:runyarn typeorm migration:revert
yarn mikro-orm migration:createyarn mikro-orm migration:upyarn mikro-orm migration:down
npx prisma migrate dev --schema prisma/schema.prisma
AdminJS is copyrighted © 2023 rst.software. It is a free software, and may be redistributed under the terms specified in the LICENSE file.
We’re an open, friendly team that helps clients from all over the world to transform their businesses and create astonishing products.
- We are available for hire.
- If you want to work for us - check out the career page.
