Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

veyxos/dummies-and-dragons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Altes Projekt für's Studium

Dummies and Dragons

Simple web server which connects to a MySQL database to create a Dungeons and Dragons like character sheet.

Setup

Step 1: Load modules

First you need to load all required modules

# Using yarn
$ yarn

# Using npm
npm i

Step 2: Setup database

Next you have to setup the database.
For that you need to tell the program the IP address of the database host if it is different than localhost. You do this in src/index.ts.

export const db = new Database("your/database/IP")

You also might need to change the login credentials in src/Database.ts

private readonly login: {user: string; password: string, host?: string} = {
    password: "your-database-password",
    user: "your-database-user"
    }

Step 3: Transpile TypeScript

Last thing is to transpile the TypeScript files to JavaScript

tsc

This program was created for study.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published