Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anataliocs/nestjs-dragonflydb-cache
Reference application demonstrating using DragonflyDB as an API cache in NestJS. DragonflyDB is deployed as a docker container on Spheron.network
https://github.com/anataliocs/nestjs-dragonflydb-cache
docker javascript nestjs typescript
Last synced: 1 day ago
JSON representation
Reference application demonstrating using DragonflyDB as an API cache in NestJS. DragonflyDB is deployed as a docker container on Spheron.network
- Host: GitHub
- URL: https://github.com/anataliocs/nestjs-dragonflydb-cache
- Owner: anataliocs
- License: mit
- Created: 2023-12-25T18:38:40.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-03-29T14:55:27.000Z (8 months ago)
- Last Synced: 2024-04-14T02:03:01.709Z (7 months ago)
- Topics: docker, javascript, nestjs, typescript
- Language: TypeScript
- Homepage: https://spheron.network/
- Size: 382 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## About
Reference application demonstrating using DragonflyDB as an API cache in NestJS.
DragonflyDB is deployed as a docker container on [Spheron.network](https://spheron.network/).
You can (create an account with Github, Gitlab, Bitbucket or with Metamask)[https://app.spheron.network/#/signup]
Check out the [Spheron docs](https://docs.spheron.network/) for more info!
[Companion article with more details](https://blog.spheron.network/try-dragonflydb-on-spheron-for-a-30x-cache-speed-boost)
## Local Build(MacOS)
Install dependencies:
```
npm install
```Create your own env file:
```
cp .env.example .env
```Spin up local environment (hot reloading included):
```
# for nest app
npm run start:dev```
Build Docker Container for running locally on MacOS:
```
docker build --platform linux/arm64 -t nestjs-dragonflydb-cache .
```## Spheron Build
Build Docker Container for running on a [Spheron Compute Cluster](https://docs.spheron.network/compute/)
```
docker build --platform linux/amd64 -t nestjs-dragonflydb-cache .
```For the DockerHub Repo: https://hub.docker.com/repository/docker/chrisaspheron/nestjs-dragonflydb-cache/general
Push to DockerHub
```
docker tag nestjs-dragonflydb-cache:latest chrisaspheron/nestjs-dragonflydb-cache:latest
docker push chrisaspheron/nestjs-dragonflydb-cache:latest
```Check out the [Spheron docs for more info on deploying a Nest app](https://docs.spheron.network/server-guide/nest/)
Contact [email protected] for questions!