GithubHelp home page GithubHelp logo

alexjstubbs / 8bit.cloud-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 9.14 MB

[ARCHIVED] This repository contains the public Ignition API Server codebase.

Home Page: http://api.ignition.io

JavaScript 94.99% Makefile 0.91% Shell 0.02% Python 0.67% C++ 1.93% C 0.30% Groff 0.08% HTML 0.61% CSS 0.19% LiveScript 0.06% D 0.01% Perl 0.02% Assembly 0.03% CoffeeScript 0.20% Ruby 0.01%

8bit.cloud-api's Introduction

Ignition API Server

io logo

Docker Repository on Quay badge report bugs wiki


This repository contains the public Ignition API Server codebase.

Using this application, you can host your own ignition client API server or contribute to the project to help improve the online aspect of the ignitionOS and ignition Client.

This is currently a work in progress. Feel free to experiment but there is no stable API version as of yet.

Requirements

Optional

  • IGDB API Key (note: moving to micorservice, so may split from repo)

Installing via Docker

git clone https://[email protected]/ignition-dev/api-server.git
cd api-server
mv ./v1/config-example.json ./v1/config.json
docker build -t ignition-api-server .
docker run ignition-api-server

Manual Install

git clone https://[email protected]/ignition-dev/api-server.git
cd api-server/v1
mv config-example.json config.json
npm install
node server

Configuration

You will need to rename config-example.json in your API version root directory to config.json. See install commands above.

In this file you will need to set up your server settings for RethinkDB as well as a default user for use on the ignition server. This user has no special privledges but is auto-added to all new users friends list as well as the main contact for areas within the connected clients UI.

Your Settings file will look like this:

{
	"address"  : "localhost",  
	"port"	   : "32770",     
	"secret"   : "secretKey", 
	"username" : "Admin",
	"password" : "password@123",
	"email"    : "[email protected]",
	"useIGDB"  : true,
	"IGDBUrl"  : "https://www.igdb.com/api/v1",
	"IGDBKey"  : "d9u12300idk01-2139d-s9"
} 
Option Example Purpose
address localhost RethinkDB server IP
port 32770 RethinkDB Port Number
secret mysecret A string used to compute hash for sessions and JSON web tokens.
username Admin A default admin username account for Ignition Server
password password@123 Set a password for default ignition user account
useIGDB true If true, IDDB.com will be used as the remote games API.
IGDBUrl https://www.igdb.com/api/v1 The URL to the versioning URL of the IGDB REST API
IGDBKey d9u12300idk01-2139d-s9 Your personal API key generated on IGDB.com

After configuration, you will want to initiate the default databases and tables in the next step.

node v1/init/init.js

Copyright © 2015 Alexander Stubbs and Ignition.io. All Rights Reserved.

Apache License 2.0 (Apache-2.0)

8bit.cloud-api's People

Contributors

alexjstubbs avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

nomadamo

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.