0.1.4 • Published 6 years ago

admin.ts v0.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

WIP Full admin features for TypeScript web apps without any effort 🔥

Goals

  • Full featured admin views
  • Auto synchronization between entities and database
  • Eazy auth
  • A next.js style SSR (Server Side Rendering)

How to use

for existing apps

Install it with your database provider (like mysql):

$ npm install --save admin.ts mysql

and add a script to your package.json like this:

{
  "scripts": {
    "start": "admin"
  }
}

finally, add .env file in your project root like this:

DB_TYPE=mysql
DB_HOST=localhost
DB_PORT=3306
DB_USERNAME=root
DB_PASSWORD=
DB_DATABASE=test

Run npm start and then you'll see the admin site on http://localhost:4000.

for new apps (via cli)

Install the cli:

$ npm install --global admin.ts

Then, run the admin command like below:

# Init the app
$ admin init MY_APP

# Run admin
$ cd MY_APP
$ npm start

# See <http://localhost:4000>