
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@shagital/adonisjs-crud-generator
Advanced tools
Adonisjs Admin Panel Generator is a package that helps you quickly scaffold your typical CRUD admin interfaces. It generates the admin panel code based on the existing (migrated) table in the database
Version [for Adonis v5]
This package allows you easily generate admin dashboard for your existing AdonisJS app. The package generates the following:
You can install the package via NPM:
npm install @shagital/adonisjs-crud-generator
Or with yarn
yarn add @shagital/adonisjs-crud-generator
@adonisjs/auth
and @adonisjs/lucid
config/hash.ts
, you'll have to install the corresponding dependency e.g phc-bcrypt
for bcrypt.api
authentication method has to be functional becuase this package uses auth:api
. If you want to save tokens in redis, you have to install @adonisjs/redis
node ace crud:init --prefix=admin
to generate default files for admin panel. Where prefix
is the base path for admin routes to be generateddatabase/migrations/admin_default_role_permission.ts
to see the password. You can also change password after loginconfig/crudGenerator.ts
to customise settingsadministrator@webmail.com
. You can change the email before running migrationnode ace migration:run
to create admin user and set up roles and permissionscd resources/views/admin
npm install
or yarn install
to install dependenciesnode ace serve
or yarn dev
npm run serve
or yarn serve
config/cors.ts
and configure the cors settings correctly.To generate CRUD management for table regions
, run node ace crud:generate regions
and the following will be created
app/Controllers/Http/Admin/RegionsController.ts
start/routes.ts
file will be updated with new routesApp/Models/Region.ts
model will be created with appropriate relationships hooksNavigate to your app and you should see the Region
menu on the sidebar
node ace crud:controller tableName
: This creates controller file and routenode ace crud:model tableName
: This creates model file node ace relationshipsadonis crud:permission tableName
: This creates migration file for crud permissionsnode ace crud:view tableName
: This creates vue filesnode ace crud:init tableName
: This runs all of the above commands--connection
: This option allows you specify which DB connection to use for the command e.g
adonis crud:controller tableName --connection=sqlite
NB: The connection must have been defined in
config/database.ts
--migrate
: This option is available for the crud:generate
and crud:permission
commands. It tells the system to automatically run the newly created migration files.--prefix
: This option is available when initialising the CRUD with crud:init
. It allows you specify a prefix for the admin endpoints that'll be created. If not specified, the system generates a random prefixRun npm run build
or yarn build
http://<BASE_URL>/<prefix>
If an error occurs while executing any of the command, it'll crash. Simply check your log to find out what went wrong - likely a file/directory permission issue, then run the command again.
Note: Except otherwise stated, the commands always overwrite existing files (with same name)
If you have a feature you'd like to add, kindly send a Pull Request (PR)
If you discover any security related issues, please email zacchaeus@shagital.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
3.0.2
FAQs
Adonisjs Admin Panel Generator is a package that helps you quickly scaffold your typical CRUD admin interfaces. It generates the admin panel code based on the existing (migrated) table in the database
The npm package @shagital/adonisjs-crud-generator receives a total of 1 weekly downloads. As such, @shagital/adonisjs-crud-generator popularity was classified as not popular.
We found that @shagital/adonisjs-crud-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.