Socket
Socket
Sign inDemoInstall

admin.ts

Package Overview
Dependencies
16
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    admin.ts

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


Version published
Maintainers
1
Created

Readme

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

Last updated on 02 Jun 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc