Git Product home page Git Product logo

swis-api's Introduction

swis-api (swapi) v5.16

Go Reference Go Report Card swis-api CI/CD pipeline

sakalWebIS v5 RESTful JSON API in Go for Docker

swapi is a condensated data structure tree made into an Information System (IS) environment. It works as an independent in-memory database/cache for generic system components like users, roles, projects, business_entities and many more. Primarily, it is meant to be used in Docker as all components are written to work out of the box when there (no go runtime installment needed when run in Docker).

Read more in a short article on swapi:

simple way to run (docker stack without a reverse-proxy)

git clone https://github.com/savla-dev/swis-api
cp .env.example .env
vi .env

make build run

or use Github Action Runner (self-hosted) to (re)delpoy swapi using Actions Secrets (Settings -> Secrets and variables -> Actions -> New repository secret), use these keys at least:

# without http/https prefix amd HTTP path
APP_URL 
# token used for redeployment dump and data reimport (`dump_data` and `import_data` workflow jobs)
ROOT_TOKEN

# if you want to log to Loki, define an URL (full) to the loki instance
LOKI_URL
# defaults to 'debug', specify 'release' in .env or in GHA secret for production
GIN_MODE

install latest binary (go runtime installed required)

go install go.savla.dev/swis/v5@latest

GIN_MODE=release ROOT_TOKEN=xxx SERVER_PORT=8050 ~/go/bin/swis

swapi could be run as a single binary too. However, some environment constants have to be set when running it solitarily --- mainly SERVER_PORT and ROOT_TOKEN environment variables are required for the app's smooth start-up.

development

swapi development environment is made in Docker too, it is simple to run a local instance using:

make fmt dev

Then, the local instance could be accessed via http://localhost:8051. To contribute, simply make a new branch and create a new pull request.

swis-api's People

Contributors

krustowski avatar

Stargazers

 avatar  avatar

Watchers

 avatar

swis-api's Issues

implement distributed swapi instances sync

  • swapi intercommunication protocol (SIP)?
  • Diffie Hellmann key exchange and TLS encryption
  • request echoing to other instances to ensure data integrity + periodic instances sync
  • ensure atomicity, consistency, isolation, and durability (ACID) test passes

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.