Code Monkey home page Code Monkey logo

gyurver's Introduction

Dependencies

You will need to pull the following dependencies in order to compile the project:

  • network-simple
  • random
  • parsec

cabal install <element> --lib

Configuration file

You need to place a configuration file in order for a server to work: gyurver.settings

Example:

host_address 0.0.0.0
port 80
password very_safe_password
mode prod
cokk2021 blocked

The settings are loaded in the following object:

data Settings = Settings
  { hostAddress :: IP
  , port :: Port
  , password :: String
  , mode :: Mode
  , cokk2021 :: EventMode
  } deriving (Show)

If you have no config file the following will be loaded:

defaultSettings = Settings
  { hostAddress = IP "localhost"
  , port = Port 8080
  , password = "nincs jelszo"
  , mode = Dev
  , cokk2021 = Blocked
  }

Endpoints

Pages

  • / Landing Page
  • /articles Get a html list of articles with links
  • /videos Get a list of embedded videos
  • /videos/new Add new video page
  • /cokk2020 Landing page of 2020 Cokkoles contest
  • /cokk2020/results The results of the 2020 Cokkoles contest
  • /cokk2021 Landing page of 2021 Cokkoles contest
  • /cokk2021/results The results of the 2021 Cokkoles contest
  • /blog A page where you can browse the blog
  • /blog/# A page that displays the blog with the given index
  • /films A page that displays the film list

Resources

  • /favicon.ico Get the favicon
  • /cv alternative route for CV
  • /res/cv.pdf Get the CV
  • /res/anomaly_detection_taxonomy.pdf Taxonomy article
  • /res/anomaly_detection_platform.pdf Anomaly detection article
  • /res/anomaly_detection_metrics.pdf Anomaly detection metrics article

JSON

  • /api/ping pings the server and it returns nothing as fast as possible (Get)
  • /api/videos list of videos endpoint (Get, Post, Options)
  • /api/video/# data about a certain video (Get, Post, Delete)
  • /api/cokk2020 list of contestants of the 2020 Cokkoles
  • /api/cokk2021/login login endpoint for 2021 Cokkoles (Post)
  • /api/cokk2021/register register endpoint for 2021 Cokkoles (Post)
  • /api/cokk2021/resztvevok list of participants for 2021 Cokkoles (Get, Post)
  • /api/cokk2021/water water someone for 2021 Cokkoles (Post)
  • /api/cokk2021/dashboard refresh dashboard for 2021 Cokkoles (Post)
  • /api/cokk2021/skills/inc increase skill endpoint for 2021 Cokkoles (Post)
  • /api/cokk2021/update/eggname ability to change egg name for 2021 Cokkoles (Post)
  • /api/cokk2021/items get list of items for 2021 Cokkoles (Get)
  • /api/cokk2021/items/buy buy item endpoint for 2021 Cokkoles (Post)
  • /api/cokk2021/items/equip equip item endpoint for 2021 Cokkoles (Post)
  • /api/cokk2021/fight run a match between 2 eggs for 2021 Cokkoles (Post)
  • /api/films endpoint for film stuff (Get, Post, Delete, Put)
  • /api/blog/# get a specific blog (Get)
  • /api/todayhits how many hits did we get today? (Get)

gyurver's People

Contributors

kovaxg avatar

Stargazers

Murat Kasimov avatar

Watchers

James Cloos avatar  avatar

gyurver's Issues

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.