Kottster is a free tool to help developers quickly build and deploy admin panels. In just 5 minutes, you can generate a fully functional admin panel, deploy it to the cloud, and share it with your team.
When you build apps with Kottster, they run on Remix, a web framework for creating full-stack apps using React and Node.js environment.
In this article, I'll show you how to create a Kottster app, connect it to your database, generate pages for specific tables, and host it anywhere.
Creating a project
Before you begin, make sure Node.js (v20 or higher) is installed on your machine.
To create a new project, run this command:
npx @kottster/cli new
You’ll be asked for a project name, whether you want to use JavaScript or TypeScript, and which package manager to use. After that, a new project folder will be created with everything you need to get started.
To start the app locally, open the created folder and run npm run dev:
When the app loads, you'll see the login page. Click “Create an account” to sign up on Kottster. After signing up, enter a name for your app and click “Create app”. This will create your app and log you in.
Once everything is set up, you’ll see the “Getting started” page:
Connect your database
On the Getting Started page, choose your database type, enter the connection details, and click “Connect”.
This will install the necessary packages and create a file with a data source connected to your database in your project folder.
Please notice that with your app being self-hosted, your credentials always remain private, and the Kottster tool doesn’t have access to your database.
Generate pages
After connecting your database, you'll see the “Generate pages” tab:
This page helps you quickly create pages to view or manage data from your database tables.
If you enable “Allow insert” or “Allow update”, forms for adding and updating records will be available. Enabling “Allow delete” will add the ability to delete records.
Once you've made your selections, click "Generate pages". The tool will automatically generate the page files and update the sidebar menu with new items.
How pages work
Each page in your admin panel is located in the app/routes directory. These pages are essentially Remix routes that serve as both the UI and API, and you can customize them however you like.
Each page file in the Kottster app should export a React component,
When you generate a page for a specific database table, it will include the following:
- A Remix action that calls the createTableRpc function. This function controls the table's behavior and enables its features.
- A
component, which is closely tied to the createTableRpc settings defined in the action.
Example of a generated page for the "users" table:
npx @kottster/cli new
You can learn more about createTableRpc and the
component in our documentation. I also recommend learning more about Remix and its Fullstack Data Flow in their official documentation.
Deployment
When you're ready, you can deploy your Kottster app to make it available online. Before deploying, ensure the app is properly built and free of errors.
To do this, build your app locally by running npm run build:
If there are no errors, your app is ready to go live. Since it's self-hosted, you can deploy it anywhere you like. Learn more about deployment options here.
Deploying to Vercel for free
In this article, I'll cover one of the most popular free options: deploying a Kottster app to Vercel.
Start by signing up for an account at vercel.com if you don't already have one. Once logged in, click "New Project" and connect your repository containing the app you built.
After selecting your repository, click "Deploy". In just a few moments, your app will be live on a free Vercel domain.
Once your app is live, you can open it and log in to your account.
That's it! Your admin panel is now available online.
You can now share it with your team. To do this, click "Manage accesses" in the left sidebar of your app. This will open a page where you can set up access for other users by entering their email addresses.
Final notes
You can learn more about Kottster on our website: kottster.app
If you have any questions or need help, check out our documentation, visit our GitHub repository, or join our Discord community to ask questions and share your feedback.
Thanks for reading, and good luck with your project!
The above is the detailed content of Create an Admin Panel for your project in inutes. For more information, please follow other related articles on the PHP Chinese website!

Detailed explanation of JavaScript string replacement method and FAQ This article will explore two ways to replace string characters in JavaScript: internal JavaScript code and internal HTML for web pages. Replace string inside JavaScript code The most direct way is to use the replace() method: str = str.replace("find","replace"); This method replaces only the first match. To replace all matches, use a regular expression and add the global flag g: str = str.replace(/fi

So here you are, ready to learn all about this thing called AJAX. But, what exactly is it? The term AJAX refers to a loose grouping of technologies that are used to create dynamic, interactive web content. The term AJAX, originally coined by Jesse J

10 fun jQuery game plugins to make your website more attractive and enhance user stickiness! While Flash is still the best software for developing casual web games, jQuery can also create surprising effects, and while not comparable to pure action Flash games, in some cases you can also have unexpected fun in your browser. jQuery tic toe game The "Hello world" of game programming now has a jQuery version. Source code jQuery Crazy Word Composition Game This is a fill-in-the-blank game, and it can produce some weird results due to not knowing the context of the word. Source code jQuery mine sweeping game

This tutorial demonstrates how to create a captivating parallax background effect using jQuery. We'll build a header banner with layered images that create a stunning visual depth. The updated plugin works with jQuery 1.6.4 and later. Download the

Article discusses creating, publishing, and maintaining JavaScript libraries, focusing on planning, development, testing, documentation, and promotion strategies.

The article discusses strategies for optimizing JavaScript performance in browsers, focusing on reducing execution time and minimizing impact on page load speed.

This article demonstrates how to automatically refresh a div's content every 5 seconds using jQuery and AJAX. The example fetches and displays the latest blog posts from an RSS feed, along with the last refresh timestamp. A loading image is optiona

Matter.js is a 2D rigid body physics engine written in JavaScript. This library can help you easily simulate 2D physics in your browser. It provides many features, such as the ability to create rigid bodies and assign physical properties such as mass, area, or density. You can also simulate different types of collisions and forces, such as gravity friction. Matter.js supports all mainstream browsers. Additionally, it is suitable for mobile devices as it detects touches and is responsive. All of these features make it worth your time to learn how to use the engine, as this makes it easy to create a physics-based 2D game or simulation. In this tutorial, I will cover the basics of this library, including its installation and usage, and provide a


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Zend Studio 13.0.1
Powerful PHP integrated development environment

Atom editor mac version download
The most popular open source editor

SublimeText3 Chinese version
Chinese version, very easy to use