Skip to content

Commit

Permalink
some deletions
Browse files Browse the repository at this point in the history
  • Loading branch information
nermalcat69 committed Nov 28, 2024
1 parent 1d7885c commit bc2fd36
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 309 deletions.
54 changes: 54 additions & 0 deletions apps/docs/content/deno/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,63 @@ 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 DeployButton from '@site/src/components/DeployButton';
import CustomCard from '@site/src/components/CustomCard';

[Deno ↗](https://deno.org/en) is an asynchronous event-driven JavaScript runtime, which is designed to build scalable network applications.

:::tip
Have you got any additional question? Join our **[Discord](https://discord.com/invite/WDvCZ54)** community to get help from our team and other members.
:::


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

<CustomCard title="No Fuss, Just Deploy with Speed!" emoji="🚀">
This is the most bare-bones example of Deno app running on Zerops — as few libraries as possible,
just a simple endpoint with connnect, read and write to a Zerops PostgreSQL database.

<DeployButton link="deno" 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-deno/blob/main/zerops-project-import.yml)):

```yml
project:
name: recipe-deno
tags:
- zerops-recipe

services:
- hostname: api
type: deno@1
buildFromGit: https://github.com/zeropsio/recipe-deno
enableSubdomainAccess: true

- hostname: db
type: postgresql@16
mode: NON_HA
priority: 1
```
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://api-7f6-8000.prg1.zerops.app`.
2. Click or the `subdomain` URL to open it in a browser and you should see

```
{"message":"This is a simple, basic Deno / Oak application running on Zerops.io,\n each request adds an entry to the PostgreSQL database and returns a count.\n See the source repository (https://github.com/zeropsio/recipe-deno) for more information.","newEntry":"274b0cc1-5b6d-4351-b8ec-53cf82bd9d0f","count":1}
```
:::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
It doesn't matter whether it's your first curious introduction to Zerops, you have already mastered the basics and are looking for a tiny detail or inspiration. Below, choose a section that fits your needs:
Expand Down
59 changes: 0 additions & 59 deletions apps/docs/content/deno/tutorial/quickstart.mdx

This file was deleted.

115 changes: 0 additions & 115 deletions apps/docs/content/deno/tutorial/runtime-sql.mdx

This file was deleted.

96 changes: 0 additions & 96 deletions apps/docs/content/deno/tutorial/step-by-step.mdx

This file was deleted.

51 changes: 12 additions & 39 deletions apps/docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -2494,45 +2494,18 @@ collapsible: false,
sidebar_icon: 'deno',
},
},
{
type: 'category',
label: 'Dive-in',
collapsible: false,
link: {
type: 'doc',
id: 'deno/getting-started',
},
customProps: {
sidebar_icon: 'rocket-launch',
},
className: 'homepage-sidebar-item',
items: [
{
type: 'doc',
id: 'deno/tutorial/quickstart',
label: 'Quickstart',
customProps: {
exclude_from_doc_list: false,
},
},
{
type: 'doc',
id: 'deno/tutorial/step-by-step',
label: 'Step-by-step tutorial',
customProps: {
exclude_from_doc_list: false,
},
},
{
type: 'doc',
id: 'deno/tutorial/runtime-sql',
label: 'Runtime + SQL',
customProps: {
exclude_from_doc_list: false,
},
},
],
},
// {
// type: 'doc',
// label: 'Dive-in',
// collapsible: false,
// link: {
// type: 'doc',
// id: 'deno/getting-started',
// },
// customProps: {
// sidebar_icon: 'rocket-launch',
// },
// },
{
type: 'category',
label: 'How-to',
Expand Down

0 comments on commit bc2fd36

Please sign in to comment.