Giter Site home page Giter Site logo

bigfootds / sourcepool-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 4.84 MB

TTRPG content management system, ready for you to self-host. Server executable for an admin or DM/GM to run and maintain.

Home Page: https://bigfootds.github.io/Sourcepool/

License: GNU General Public License v3.0

JavaScript 99.45% HTML 0.55%
camo dungeons-and-dragons electron express expressjs javascript nedb pathfinder-rpg ttrpg bigfootds

sourcepool-server's Introduction

Sourcepool Server

This repository contains the source code for the core "server" component of Sourcepool.

Contributing

To see the to-do list of the Sourcepool ecosystem, please refer to these resources:

The GitHub project Sourcepool is the primary source of info for task planning, and includes links to the official repositories of the various bits of Sourcepool.

Installation

Installers are provided in the Releases page for MacOS and Windows platforms. Releases towards the top of the page are newer, with the release labelled "latest" being the newest version of the server.

So, MacOS and Windows users, please visit this page: https://github.com/BigfootDS/Sourcepool-Server/releases

Linux users, please refer to the "Build From Source" section of this page.

Build From Source

First, download or clone this repository.

This is a NodeJS project, built on the latest LTS version of NodeJS.

Depending on your platform, you may need to do things like install node-gyp separately.

On all systems, you will need to install the NPM dependencies. In your terminal, run this command:

npm install

On Ubuntu and other Linux systems, you may need to install additional dependencies before running or building this app:

Ubuntu dependencies and building

  1. Install dependencies:

sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev

  1. Create builds with this command:

DEBUG=electron-installer-snap:snapcraft npm run make

MacOS, Windows and other platforms

On most systems, you can simply run the npm run make command in your terminal and things should work.

Attributions

"PBR Paper 02 Texture" texture by plaggy, available on OpenGameArt.org - CC0 - Used in backgrounds in some places of the app, but typically at a reduced opacity (eg. 40% in MacOS DMG installers).

sourcepool-server's People

Contributors

alexstormwood avatar

sourcepool-server's Issues

feat: Embed web client in server

The Sourcepool Server should have some sort of UI, even though the app itself is just an API & database.

So, like Jellyfin, the server/backend should include a local web client (eg. a React app).

This means that some web client needs to be created - in its own repo - and that this server needs to embed it somehow. This could be as a git submodule that is only updated when the server does a new release, or as a downloaded-as-needed app that is downloaded and updated during the server's usage without being tied to server releases, or a mix of both of those, or some other completely different option.

Either way, a web client needs to exist before this issue can be worked on.

Depends on...

  • Web client, stored in an external repository

feat: Encounter tracker data

Add data to represent an encounter (combat or otherwise).
Encounters have:

  • Rounds (number)
  • Initiative (object array)
    • Character (id/string)
    • Order (number)
  • Notes (string array)

Characters or the DM can set their Initiative, determining their order in the Encounter.

The DM can progress through an Encounter, moving from Character to Character.

A complete loop through all Characters increments a Round by one.

The DM can modify the health of each Character, either healing or damaging them.

feat: Basic Admin Auth

When the server starts, it should check if any existing admins are found on record for the server.

If no admins are found, all API requests should respond with a message indicating that an admin needs to sign up.

One route will work:
POST /users/admin/create

Needs JSON body data of username and password.

Depends on...

  • ElectronJS + ExpressJS project init with embedded DB

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.