Giter VIP home page Giter VIP logo

adminjs-example-app's Introduction

AdminJS-example-app

Example application using adminjs

Demo

You can check out the current demo version at: https://admin-bro-example-app-staging.herokuapp.com/admin/login

login: [email protected]
password: password

Prerequisites

To run the demo locally you have to have installed:

  • mongodb
  • postgresql

or run docker-compose up

Also in ENV you have to have following entries:

  • MONGO_URL
  • PORT - default to 3000
  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • POSTGRES_PORT - default to 5432
  • POSTGRES_DATABASE - default to 'adminjs'
  • POSTGRES_HOST - default to 'localhost'
  • TYPEORM_USERNAME
  • TYPEORM_PASSWORD
  • TYPEORM_PORT - default to 5432
  • TYPEORM_DATABASE - default to 'adminjs'
  • TYPEORM_HOST - default to 'localhost'

Starting the app

First, install all dependencies

yarn install

Make sure you have all environmental variables set up (read the previous paragraph).

Then create postgres database and run migrations:

yarn sequelize db:migrate
yarn typeorm migration:run
yarn mikro-orm migration:up
npx prisma migrate dev --schema src/sources/prisma/schema.prisma

In the end, you can launch the app

yarn start:dev

Developing the app

The best way of developing the app is to do this via https://github.com/SoftwareBrothers/adminjs-dev.

Sequelize

migrations
  • yarn sequelize migration:generate --name init
  • yarn sequelize db:migrate
  • yarn sequelize db:migrate:undo

Typeorm

migrations
  • yarn typeorm migration:generate -n init
  • yarn typeorm migration:run
  • yarn typeorm migration:revert

mikro-orm

migrations
  • yarn mikro-orm migration:create
  • yarn mikro-orm migration:up
  • yarn mikro-orm migration:down

prisma

  • npx prisma migrate dev --schema src/sources/prisma/schema.prisma

License

AdminJS is Copyright © 2018 SoftwareBrothers.co. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About SoftwareBrothers.co

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 to hire.
  • If you want to work for us - check out the career page.

adminjs-example-app's People

Contributors

wojtek-krysiak avatar ariansobczak-rst avatar dziraf avatar michlask avatar simonb407 avatar frontkickit avatar przemyslaw-szejna-sb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.