Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
/ minearte-backend Public archive

✨ Minearte Network backend logic writen in TypeScript with Deno

Notifications You must be signed in to change notification settings

Minearte/minearte-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minearte Backend

Welcome to Minearte Backend

This backend is written in TypeScript with deno not Node.js

Configure

Run to generate the .env file

deno task config

Fill the .env file with your data

# This is the configuration file for the server.
#
# This is the port that the server will listen on.
PORT=4000
# You can use any of the following options:
#   - INTERNAL: The cache is stored in the same process as the server.
#   - REDIS: The cache is stored in a Redis instance.
CACHE="REDIS"
# This is the interval in milliseconds that the cache will be refreshed.
CACHE_REFRESH_INTERVAL=600000
# Here you can configure the Redis instance.
#
# This is the Redis host. Only used if CACHE=REDIS.
REDIS_HOST="localhost"
# This is the Redis port. Only used if CACHE=REDIS.
REDIS_PORT=6379
# This is the Redis password. Only used if CACHE=REDIS.
REDIS_PASSWORD="password"
# This is the Redis database. Only used if CACHE=REDIS.
REDIS_DATABASE=0
# This is the Redis key prefix. Only used if CACHE=REDIS.
REDIS_KEY_PREFIX="minearte-cache:"
# Tebex
# Here you have to put your tebex secret
TEBEX_SECRET="YOUR_TEBEX_SECRET"

You can use Redis for cache or the same process, Redis is recommended for multi-instances

Running

Then for start the server you only need to run:

deno task start

If you want hot reload run (you need denon):

deno task dev

Testing

If you want to test the app is working correctly run:

deno task test

About

✨ Minearte Network backend logic writen in TypeScript with Deno

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published