Skip to content

Commit

Permalink
Merge branch 'master' into FUI-2016
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-genesis committed May 28, 2024
2 parents 562bc9d + 5b19123 commit 5950946
Show file tree
Hide file tree
Showing 88 changed files with 714 additions and 1,075 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 'Go to the next level'
sidebar_label: 'Go to next level'
sidebar_position: 8
id: go_to_training
keywords: [getting started, quick start, next level, training, devloper training, web training, server training]
tags:
Expand Down
28 changes: 2 additions & 26 deletions docs/01_getting-started/02_quick-start/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,9 @@ Welcome to the quick start tutorial page. Here we are going to create a very sim

Before you start, make sure you have the relevant [hardware and software](../../getting-started/quick-start/hardware-and-software/).

For this tutorial please use Windows as development environment and WSL/CentOS/Docker/Genesis Intellij plugin as runtime environment

We understand that the real world has different runtime environments. Because of that, we offer different ways to do this quick start.

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs defaultValue="Intellij Plugin" values={[{ label: 'Intellij Plugin', value: 'Intellij Plugin', }, { label: 'Docker', value: 'Docker', }, { label: 'WSL', value: 'WSL'}]}>
<TabItem value="Intellij Plugin">

Genesis Intellij plugin - This is the very latest version of our development. The genesis intellij plugin will do all the work for you regarding the environment setup. Using the plugin, you will not need any other software to run your application. You can download the intellij plugin directly from the Intellij marketplace or you can download [here](https://plugins.jetbrains.com/plugin/21131-genesis-platform-support).

</TabItem>
<TabItem value="Docker">

Docker containers - there are instructions for installing Rancher for Desktop (container management software) in the [Rancher documentation](https://rancherdesktop.io/). For a download, [click here](https://docs.rancherdesktop.io/).


</TabItem>
<TabItem value="WSL">

WSL/CentOS - there are instructions for the installtion on the [installation page](../../getting-started/prerequisites/installing-wsl/).

</TabItem>
</Tabs>
For this tutorial, use Windows as the development environment and Genesis Intellij plugin as the runtime environment

Before you start, make sure you have the relevant [hardware and software](./hardware-and-software/).
For this tutorial, please use Windows as your development environment.

Once everything is installed, you can proceed to the first step of the Quick start - [Create a new project](../../getting-started/quick-start/create-a-new-project/)
Once everything is installed, you can proceed to the first step of the Quick start - Create a new project using [genx](../../getting-started/quick-start/new-project-using-genx/create-a-new-project/) or [Genesis Create](./create-new-application)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
label: 'New project using Genx'
className: 'menu__nested-category'
collapsed: true
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 'Quick start - add business logic'
sidebar_label: 'Add business logic'
sidebar_position: 3
id: add-business-logic
keywords: [getting started, quick start, dataserver, event handler, business logic]
tags:
Expand All @@ -14,7 +15,7 @@ tags:
So far, you have a table; now we want to be able to see its content and create new entries.

## Data Server
A [Data Server](../../../server/data-server/introduction/) provides real-time data to the front end. It also creates an HTTP endpoint that can be accessed by any client. You must define the Data Server in the file **alpha-dataserver.kts**. This file is under **server/alpha-app/src/main/genesis/script**.
A [Data Server](../../../../server/data-server/introduction/) provides real-time data to the front end. It also creates an HTTP endpoint that can be accessed by any client. You must define the Data Server in the file **alpha-dataserver.kts**. This file is under **server/alpha-app/src/main/genesis/scripts**.

```kotlin
dataServer {
Expand All @@ -23,7 +24,7 @@ dataServer {
```

## Event Handler
Next, we want to be able to insert rows into our table. For this, you need to define an [Event Handler](../../../server/event-handler/introduction/) in the file **alpha-eventhandler.kts**. This file is under **server/alpha-app/src/main/genesis/script**.
Next, we want to be able to insert rows into our table. For this, you need to define an [Event Handler](../../../../server/event-handler/introduction/) in the file **alpha-eventhandler.kts**. This file is under **server/alpha-app/src/main/genesis/scripts**.

```kotlin
eventHandler {
Expand All @@ -37,3 +38,5 @@ eventHandler {

}
```

In this example, we use a database interface called `entityDb`. For more information about it, [follow this link](../../../../database/database-interface/entity-db/).
Loading

0 comments on commit 5950946

Please sign in to comment.