- Navigate to the project folder:
cd path/to/your/project
- Install dependencies:
npm install
- Build the project:
npm run build
- Start the application:
npm run start
- Ensure MySQL is running and properly configured. The sql file is in ./src/db.
https://docs.adminjs.co/installation/adapters
We use Sequelize to build adapters.
-
Build /models/organisation.ts instance based on tables in Mysql
-
Add organisation model into the resources in ./admin/option.ts file.
-
Rebuild project. Test in http://localhost:5000/admin/api/resources/organisation/actions/list
-
This demo achieved basic CRUD actions by adminJs automatically. Please DO NOT edit the file that has been configured!!!
-
You may need to build more complex action or model by yourself. (https://docs.adminjs.co/basics)
-
You may set up MySQL on your local machine to run the application.
-
To test video upload functionality, please create a directory /public/files