https://github.com/fecony/nx-deno-cheetah-extension
NX monorepo for cheetah server and extension
https://github.com/fecony/nx-deno-cheetah-extension
Last synced: about 2 months ago
JSON representation
NX monorepo for cheetah server and extension
- Host: GitHub
- URL: https://github.com/fecony/nx-deno-cheetah-extension
- Owner: fecony
- Created: 2023-07-26T21:23:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-27T22:08:58.000Z (almost 2 years ago)
- Last Synced: 2025-02-15T04:27:31.133Z (3 months ago)
- Language: TypeScript
- Size: 1.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nx Deno cheetah

✨ **This workspace has been generated by [Nx, a Smart, fast and extensible build system.](https://nx.dev)** ✨
Example repo of nx monorepo with [cheetah](https://github.com/azurystudio/cheetah)(deno) backend server and example extension for it.
Example extension simply adds `x-powered-by` header to the response.### Create new nx monorepo
```bash
npx create-nx-workspace@latest
```### Create Deno App and library
Before creating nx apps/libs we have to install `@nx/deno` package
```bash
yarn add -D @nx/denonx list @nx/deno # Run to list capabilities of @nx/deno
```To create Deno application:
```bash
nx g @nx/deno:app
```To create Deno library:
```bash
nx g @nx/deno:lib
```## Deploy!
### Deno Deploy
In order to deploy your cheetah app on [Deno Deploy](https://deno.com/deploy) you have to create new project.
Then you can add Git Integration by selecting your cheetah monorepo repository -> Automatic mode -> Select your server entry file `apps/cheetah-backend/src/mod.ts`
Or you can deploy it from CLI as well!
First of all you have to setup deploy config, run following command to do so
```bash
nx g @nx/deno:setup-deploy --site
```Then run deploy command on your your project by specyfing preview or production environment and passing access token.
```bash
nx run cheetah-backend:deploy: --token=
```