<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arthur Vidmar</title>
    <description>The latest articles on DEV Community by Arthur Vidmar (@arthur-vdr).</description>
    <link>https://dev.to/arthur-vdr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2574282%2Fcf5dcd24-7a2c-4640-9269-ff32f827f641.jpeg</url>
      <title>DEV Community: Arthur Vidmar</title>
      <link>https://dev.to/arthur-vdr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arthur-vdr"/>
    <language>en</language>
    <item>
      <title>Generate Node.js Admin Panel using Kottster</title>
      <dc:creator>Arthur Vidmar</dc:creator>
      <pubDate>Tue, 11 Feb 2025 16:12:38 +0000</pubDate>
      <link>https://dev.to/arthur-vdr/generate-nodejs-admin-panel-using-kottster-1ep6</link>
      <guid>https://dev.to/arthur-vdr/generate-nodejs-admin-panel-using-kottster-1ep6</guid>
      <description>&lt;p&gt;&lt;a href="https://kottster.app/" rel="noopener noreferrer"&gt;Kottster&lt;/a&gt; is an open-source tool for building a &lt;a href="https://kottster.app/nodejs-admin-panel" rel="noopener noreferrer"&gt;Node.js admin panel&lt;/a&gt; on top of your database. It's built on top of the full-stack framework that uses Node.js and React. &lt;/p&gt;

&lt;p&gt;Kottster allows you to easily generate &lt;a href="https://kottster.app/docs/table/introduction" rel="noopener noreferrer"&gt;pages to view and manage data in your database tables&lt;/a&gt;. Here’s an example of a typical page like this in Kottster:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxmcdk53w357gxhvy826s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxmcdk53w357gxhvy826s.png" alt="Page for viewing and managing data in database table" width="800" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The main feature of Kottster is that you can create pages just by defining a simple configuration for the features you need.&lt;/p&gt;

&lt;p&gt;For example, let's say we want to create a page to view data from the &lt;strong&gt;couriers&lt;/strong&gt; table in a database. Our users should be able to search, sort, and filter the data. We also want to allow adding new couriers, as well as editing or deleting existing ones.&lt;/p&gt;

&lt;p&gt;Normally, this would require setting up a backend with an API, building a frontend, and integrating it with the API.&lt;/p&gt;

&lt;p&gt;But with Kottster, we can create this page using a simple configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nx"&gt;action&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;defineTableController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;dataSource&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;table&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;couriers&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;primaryKeyColumn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;select&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;pageSize&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;searchableColumns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;first_name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;last_name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;email&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="na"&gt;sortableColumns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;created_at&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="na"&gt;filterableColumns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;id&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;update&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Users will be able to search within the specified &lt;code&gt;searchableColumns&lt;/code&gt;, sort data based on the &lt;code&gt;sortableColumns&lt;/code&gt;, and filter using the &lt;code&gt;filterableColumns&lt;/code&gt;. Each option here defines how the table behaves.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpf1wvd4umgacor77t18k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpf1wvd4umgacor77t18k.png" alt="Example of a generated page" width="800" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Instead of spending time coding basic CRUD endpoints and building an admin panel interface, you can focus on developing your product.&lt;/p&gt;

&lt;p&gt;The best part is that while you can create pages manually, you don’t have to. Kottster includes a &lt;strong&gt;built-in page generator&lt;/strong&gt; that can analyze any table in your database, including its columns and relationships. It does this in literally seconds—and without using any LLM.&lt;/p&gt;

&lt;p&gt;You can learn more about features Kottster has on &lt;a href="https://kottster.app/" rel="noopener noreferrer"&gt;our website&lt;/a&gt; or check out the &lt;a href="https://demo.kottster.app/" rel="noopener noreferrer"&gt;live demo&lt;/a&gt; to see the type of admin panel you can build.&lt;/p&gt;

&lt;h1&gt;
  
  
  How to get started
&lt;/h1&gt;

&lt;p&gt;To get started, create a new project using the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx @kottster/cli new
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Make sure you have &lt;a href="https://nodejs.org/en" rel="noopener noreferrer"&gt;Node.js (v20 or higher)&lt;/a&gt; installed.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It will ask you a few questions, such as the project name, whether to use JavaScript or TypeScript, and which package manager to use.&lt;/p&gt;

&lt;p&gt;Once the installation is complete, go to the created project folder and run the command &lt;code&gt;npm run dev&lt;/code&gt; to start the project locally (default: &lt;code&gt;http://localhost:5480&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Open the server URL in your browser. You’ll see an authentication page where you can create an account. After that, you’ll be able to create an app by specifying its name:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgmn02udlrfc6cdse6gee.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgmn02udlrfc6cdse6gee.png" alt="Creating an app in Kottster" width="800" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Clicking “&lt;strong&gt;Create&lt;/strong&gt;” will initialize your project locally and log you into it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect your database
&lt;/h2&gt;

&lt;p&gt;After creating an app, you’ll land on the &lt;strong&gt;Getting Started&lt;/strong&gt; page, where you can easily connect your database:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fppumjcw1ymzpyws2jbnt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fppumjcw1ymzpyws2jbnt.png" alt="Connecting database in Kottster" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There, you can choose the database you want to connect to and either enter its credentials directly or generate a file to specify them manually.&lt;/p&gt;

&lt;p&gt;Since the app is self-hosted, Kottster doesn’t store or access your database credentials, so you don’t need to worry about privacy concerns.&lt;/p&gt;

&lt;h2&gt;
  
  
  Generate pages
&lt;/h2&gt;

&lt;p&gt;Once your database is connected, you can start creating pages.&lt;/p&gt;

&lt;p&gt;Click the "&lt;strong&gt;Add Page&lt;/strong&gt;" button in the sidebar, and a modal will appear where you can specify the page title and choose its content type:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Empty&lt;/strong&gt; – Creates a blank page with no content.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Table&lt;/strong&gt; – Generates a table page like the one shown earlier, allowing you to view and manage data from any database table in a convenient way.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Table with custom SQL query&lt;/strong&gt; – Generates a table page with a sample SQL query to extract data from your database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Table with custom fetch&lt;/strong&gt; – Generates a table page that retrieves data from a sample API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom page&lt;/strong&gt; – Creates an example page with a custom controller. It generates a backend response and a client-side component that fetches and displays the data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwcw3pr82k5e1t0nswexd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwcw3pr82k5e1t0nswexd.png" alt="Creating a new page" width="800" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you choose "&lt;strong&gt;Table&lt;/strong&gt;" as the page content and select a database table, Kottster will analyze the table—including its columns and relationships—and generate the most suitable page for it.&lt;/p&gt;

&lt;p&gt;The page will be created in the &lt;code&gt;./app/routes&lt;/code&gt; directory, and a new navigation item will be added to the sidebar automatically.&lt;/p&gt;

&lt;p&gt;You can customize any generated page as needed, adding custom components or business logic to fit your needs.&lt;/p&gt;

&lt;h1&gt;
  
  
  How to deploy
&lt;/h1&gt;

&lt;p&gt;The Kottster app you build is essentially a Remix app running on a Node.js server, which can be &lt;a href="https://kottster.app/docs/deploying" rel="noopener noreferrer"&gt;deployed anywhere&lt;/a&gt;, including popular cloud providers.&lt;/p&gt;

&lt;p&gt;You can learn more about this by reading &lt;a href="https://kottster.app/docs/deploying" rel="noopener noreferrer"&gt;our guide on deploying Kottster to production&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Also, here’s a great article on where to host your Remix app: &lt;a href="https://www.jacobparis.com/content/where-to-host-remix" rel="noopener noreferrer"&gt;https://www.jacobparis.com/content/where-to-host-remix&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;To learn more, visit the &lt;a href="https://kottster.app/docs/" rel="noopener noreferrer"&gt;Kottster documentation&lt;/a&gt; or check out the &lt;a href="https://github.com/kottster/kottster" rel="noopener noreferrer"&gt;source code on GitHub&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thank you for reading!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>node</category>
      <category>react</category>
      <category>javascript</category>
      <category>lowcode</category>
    </item>
    <item>
      <title>Create an Admin Panel for your project in 5 minutes</title>
      <dc:creator>Arthur Vidmar</dc:creator>
      <pubDate>Tue, 17 Dec 2024 16:52:31 +0000</pubDate>
      <link>https://dev.to/arthur-vdr/create-an-admin-panel-for-your-project-in-5-minutes-2eho</link>
      <guid>https://dev.to/arthur-vdr/create-an-admin-panel-for-your-project-in-5-minutes-2eho</guid>
      <description>&lt;p&gt;&lt;a href="https://kottster.app/" rel="noopener noreferrer"&gt;Kottster&lt;/a&gt; is a free tool to help developers quickly build and deploy admin panels. In just 5 minutes, you can generate a fully functional &lt;a href="https://kottster.app/nodejs-admin-panel" rel="noopener noreferrer"&gt;Node.js admin panel&lt;/a&gt;, deploy it to the cloud, and share it with your team.&lt;/p&gt;

&lt;p&gt;When you build apps with Kottster, they are full-stack and run on React and Node.js.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;




&lt;h2&gt;
  
  
  Creating a project
&lt;/h2&gt;

&lt;p&gt;Before you begin, make sure &lt;a href="https://nodejs.org/en" rel="noopener noreferrer"&gt;Node.js&lt;/a&gt; (v20 or higher) is installed on your machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To create a new project, run this command:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx @kottster/cli new
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8sjpc5g7ivay0g94hrxn.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8sjpc5g7ivay0g94hrxn.gif" alt=" " width="800" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To &lt;strong&gt;start the app locally&lt;/strong&gt;, open the created folder and run &lt;code&gt;npm run dev&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fldf9zeanj6i07uvd15fc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fldf9zeanj6i07uvd15fc.png" alt=" " width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When the app loads, you'll see the login page. Click “&lt;strong&gt;Create an account&lt;/strong&gt;” to sign up on Kottster. After signing up, enter a name for your app and click “&lt;strong&gt;Create app&lt;/strong&gt;”. This will create your app and log you in.&lt;/p&gt;

&lt;p&gt;Once everything is set up, you’ll see the “&lt;strong&gt;Getting started&lt;/strong&gt;” page:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqwdrauw5653as44cww26.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqwdrauw5653as44cww26.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Connect your database
&lt;/h2&gt;

&lt;p&gt;On the Getting Started page, choose your database type, enter the connection details, and click “&lt;strong&gt;Connect&lt;/strong&gt;”.&lt;/p&gt;

&lt;p&gt;This will install the necessary packages and create a file with a data source connected to your database in your project folder.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Generate pages
&lt;/h2&gt;

&lt;p&gt;After connecting your database, you'll see the “&lt;strong&gt;Generate pages&lt;/strong&gt;” tab:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Filxvdceb0nctisx0fx1j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Filxvdceb0nctisx0fx1j.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This page helps you quickly create &lt;a href="https://kottster.app/docs/table/introduction" rel="noopener noreferrer"&gt;pages to view or manage data&lt;/a&gt; from your database tables.&lt;/p&gt;

&lt;p&gt;If you enable “&lt;strong&gt;Allow insert&lt;/strong&gt;” or “&lt;strong&gt;Allow update&lt;/strong&gt;”, forms for adding and updating records will be available. Enabling “&lt;strong&gt;Allow delete&lt;/strong&gt;” will add the ability to delete records.&lt;/p&gt;

&lt;p&gt;Once you've made your selections, click "&lt;strong&gt;Generate pages&lt;/strong&gt;". The tool will automatically generate the page files and update the sidebar menu with new items.&lt;/p&gt;




&lt;h2&gt;
  
  
  How pages work
&lt;/h2&gt;

&lt;p&gt;Each page in your admin panel is located in the &lt;strong&gt;app/routes&lt;/strong&gt; directory. These pages are essentially &lt;a href="https://remix.run/docs/en/main/discussion/data-flow" rel="noopener noreferrer"&gt;Remix routes&lt;/a&gt; that serve as both the UI and API, and you can customize them however you like.&lt;/p&gt;

&lt;p&gt;Each page file in the Kottster app should export a React component with page content. &lt;/p&gt;

&lt;p&gt;When you generate a page for a specific database table, it will include the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;a href="https://remix.run/docs/fr/main/route/action" rel="noopener noreferrer"&gt;Remix action&lt;/a&gt; that calls the &lt;code&gt;defineTableController&lt;/code&gt; function. This function controls the table's behavior and enables its features.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;&amp;lt;Table&amp;gt;&lt;/code&gt; component, which is closely tied to the &lt;code&gt;defineTableController&lt;/code&gt; settings defined in the action.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example of a generated page for the "users" table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;TablePage&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@kottster/react&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;app&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@/.server/app&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;dataSource&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@/.server/data-sources/mysql&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Sets up table RPC settings for the "users" table&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;action&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;defineTableController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;dataSource&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;table&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;users&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;               
  &lt;span class="na"&gt;primaryKeyColumn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;       
  &lt;span class="na"&gt;select&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;pageSize&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;               
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                 
  &lt;span class="na"&gt;update&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                 
  &lt;span class="na"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="c1"&gt;// Returns the page with the table component inside&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;TablePage&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can learn more about &lt;a href="https://kottster.app/docs/table/configuration/api" rel="noopener noreferrer"&gt;&lt;code&gt;defineTableController&lt;/code&gt;&lt;/a&gt; and the &lt;a href="https://kottster.app/docs/ui/table-page-component" rel="noopener noreferrer"&gt;&lt;code&gt;&amp;lt;TablePage /&amp;gt;&lt;/code&gt;&lt;/a&gt; component in &lt;a href="https://kottster.app/docs/" rel="noopener noreferrer"&gt;our documentation&lt;/a&gt;. I also recommend learning more about Remix and its Fullstack Data Flow in &lt;a href="https://remix.run/docs/en/main/discussion/data-flow" rel="noopener noreferrer"&gt;their official documentation&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Deployment
&lt;/h2&gt;

&lt;p&gt;When you're ready, you can &lt;a href="https://kottster.app/docs/deploying" rel="noopener noreferrer"&gt;deploy your Kottster app&lt;/a&gt; to make it available online. Before deploying, ensure the app is properly built and free of errors.&lt;/p&gt;

&lt;p&gt;To do this, build your app locally by running &lt;code&gt;npm run build&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff03tecmkwq68dav5unk0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff03tecmkwq68dav5unk0.png" alt=" " width="800" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;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 &lt;a href="https://kottster.app/docs/deploying" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  Deploying to Vercel for free
&lt;/h3&gt;

&lt;p&gt;In this article, I'll cover one of the most popular free options: deploying a Kottster app to &lt;a href="https://vercel.com/" rel="noopener noreferrer"&gt;Vercel&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Start by signing up for an account at &lt;a href="https://vercel.com/" rel="noopener noreferrer"&gt;vercel.com&lt;/a&gt; if you don't already have one. Once logged in, click "&lt;strong&gt;New Project&lt;/strong&gt;" and connect your repository containing the app you built.&lt;/p&gt;

&lt;p&gt;After selecting your repository, click "&lt;strong&gt;Deploy&lt;/strong&gt;". In just a few moments, your app will be live on a free Vercel domain.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvku8fwhciq9o7z6fbmg8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvku8fwhciq9o7z6fbmg8.png" alt=" " width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once your app is live, you can open it and log in to your account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's it! Your admin panel is now available online.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can now share it with your team. To do this, click "&lt;strong&gt;Manage accesses&lt;/strong&gt;" 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.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final notes
&lt;/h2&gt;

&lt;p&gt;You can learn more about Kottster on our website: &lt;a href="https://kottster.app/" rel="noopener noreferrer"&gt;kottster.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have any questions or need help, check out &lt;a href="https://kottster.app/docs/" rel="noopener noreferrer"&gt;our documentation&lt;/a&gt;, visit our &lt;a href="https://github.com/kottster/kottster" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt;, or join &lt;a href="https://discord.com/invite/Qce9uUqK98" rel="noopener noreferrer"&gt;our Discord community &lt;/a&gt;to ask questions and share your feedback.&lt;/p&gt;

&lt;p&gt;Thanks for reading, and &lt;strong&gt;good luck with your project&lt;/strong&gt;!&lt;/p&gt;

</description>
      <category>node</category>
      <category>javascript</category>
      <category>react</category>
      <category>remix</category>
    </item>
  </channel>
</rss>
