Code Monkey home page Code Monkey logo

scaling-giggle-api's Introduction

scaling-giggle-api

scaling-giggle-api is a RESTful API for vocabulary trainers. At the time its still experimental and only test questions are available.

Requirements

  • Node.js
  • NPM

Installation

First clone the repository and install the npm packages :

git clone https://github.com/naseif/vultrDiscordBot.git
cd vultrDiscordBot
npm i

to start the API simply run the following commands :

npm start

the API will be available at https://localhost:51337

Usage

This is a list of the available endpoints at the moment:

  • /training
  • /training/:id
  • /training/:id/question/:questionID (index of the question in the array)

Hosting the API and installing SSL Certificate

Me and @stho32 made it as easy as possible. Now you do not have to go through the complex installation yourself anymore.

Assuming you are on a fresh root linux server (e.g vultr.com)

All you have to do after cloning the repository is executing the shell script located inside the hosting directory.

cd hosting
./setup-hosting.sh

This will install nginx, duckdns (for a free domain) and LetsEncrypt to install SSL Certificate for your domain and some important packages such as nodejs, npm and pwsh. It will also copy a system service called scaling-giggle-env.service to /etc/systemd/system and enable it after the nginx and LetsEncrypt installation is over. This service will start the API and make sure to restart it if a reboot occurs or if something went wrong

Before you go through the installation make sure to create an account on duckdns.org to get your free domain and token. You will be asked to provide both of them and you will be asked to provide an email for LetsEncrypt. After that, all you have to do is to sit back and let the script do its magic!

Once the script is finished installing and configuring your server, visit your own domain and you should see the API up and running :)

Contributions

Software contributions are welcome. If you are not a dev, testing and reproting bugs can also be very helpful!

Questions?

Please open an issue if you have questions, wish to request a feature, etc.

scaling-giggle-api's People

Contributors

naseif avatar stho32 avatar

Watchers

James Cloos avatar

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.