🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

admin.ts

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

admin.ts

Full admin features for TypeScript web apps without any effort <3

0.1.4
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 02 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts