Skip to content

Commit

Permalink
some deletion + some addition
Browse files Browse the repository at this point in the history
  • Loading branch information
nermalcat69 committed Nov 28, 2024
1 parent b21dbfb commit 2f7466a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 39 deletions.
42 changes: 42 additions & 0 deletions apps/docs/content/go/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,51 @@ import DocCardList from '@theme/DocCardList';
import Icons from '@theme/Icon';
import LargeCardList from '@site/src/components/LargeCardList';
import LargeCard from '@site/src/components/LargeCard';
import CustomCard from '@site/src/components/CustomCard';
import DeployButton from '@site/src/components/DeployButton';

[Go ↗](https://go.dev/) is a statically typed, compiled high-level programming language designed at Google.


As said, there is no need for coding yet, we have created a [Github repository ↗](https://github.com/zeropsio/recipe-go-hello-world), a **_recipe_**, containing the most simple Go web application. The repo will be used as a source from which the app will be built.

<CustomCard title="Feel free to deploy the recipe yourself" emoji="🚀">
This is the most bare-bones example of Go running on Zerops — as few libraries as possible,
just a simple endpoint with connnect, read and write to a Zerops PostgreSQL database.

<DeployButton link="go" badgeWidth="200" />
</CustomCard>

1. Log in/sign up to [Zerops GUI ↗](https://app.zerops.io)
2. In the **Projects** box click on **Import a project** and paste in the following yml config ([source ↗](https://github.com/zeropsio/recipe-go-hello-world/blob/main/import-project/description.yml)):

```yml
project:
name: my-first-project
services:
- hostname: helloworld
type: go@latest
minContainers: 1
maxContainers: 3
buildFromGit: https://github.com/zeropsio/recipe-go-hello-world@main
enableSubdomainAccess: true
```
3. Click on **Import project** and wait until all pipelines have finished.
**That's it, your application is now up and running! :star: Let's check it works:**
1. A _subdomain_ should have been enabled and visible in the project's **IP addressed & Public Routing Overview** box. Its format should look similar to this `https://helloworld-24-8080.prg1.zerops.app`.
2. Click or the `subdomain` URL to open it in a browser and you should see

```
Hello, World!
```
:::tip
Do you have any questions? Check the step-by-step tutorial, browse the documentation and join our **[Discord](https://discord.com/invite/WDvCZ54)** community to get help from our team and other members.
:::
## How to start
<DocCardList
Expand Down
39 changes: 0 additions & 39 deletions apps/docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -1091,45 +1091,6 @@ module.exports = {
sidebar_icon: 'go',
},
},
{
type: 'category',
label: 'Dive-in',
collapsible: false,
link: {
type: 'doc',
id: 'go/getting-started',
},
customProps: {
sidebar_icon: 'rocket-launch',
},
className: 'homepage-sidebar-item',
items: [
{
type: 'doc',
id: 'go/tutorial/quickstart',
label: 'Quickstart',
customProps: {
exclude_from_doc_list: false,
},
},
{
type: 'doc',
id: 'go/tutorial/step-by-step',
label: 'Step-by-step tutorial',
customProps: {
exclude_from_doc_list: false,
},
},
{
type: 'doc',
id: 'go/tutorial/runtime-sql',
label: 'Runtime + SQL',
customProps: {
exclude_from_doc_list: false,
},
},
],
},
{
type: 'category',
label: 'How-to',
Expand Down

0 comments on commit 2f7466a

Please sign in to comment.