This package has been deprecated

Author message:

This package moved to @arkisst/ezapp <https://npm.im/@arkisst/ezapp>

admin.ts

0.1.4 • Public • Published

[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> 

Readme

Keywords

none

Package Sidebar

Install

npm i admin.ts

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

197 kB

Total Files

23

Last publish

Collaborators

  • saltyshiomix