GithubHelp home page GithubHelp logo

digitalprime / mcserverinfo Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7 KB

This is the source to the website www.mcserverinfo.com. This is a pure Hiccup and Clojure implementation.

License: MIT License

Dockerfile 2.19% Clojure 89.40% CSS 6.42% JavaScript 1.98%
hiccup clojure compojure ring leiningen web docker docker-compose traefik

mcserverinfo's Introduction

Minecraft Server Info (Server Side Rendering)

This is the source to the website www.mcserverinfo.com. This is a pure Hiccup and Clojure implementation. Happy to correct bugs or major issues with the code and accept PR where appropriate. The site itself is up and running and is not really maintained. Yes this code uses a database for the site data and for obvious reasons the connection details have been removed from the source.

Why

Education really. I find that there is not a great deal of information on build web applications with Clojure and there is quite a few pitfalls for the newcomer. I fallen in love with Clojure a few years back and I wanted to give back a little to the community with a working example.

This was originally and Vue.js API application, with a static front end and the Clojure back end supplying the data. I ran in to the 'no content' problem with Google then I decided to rewrite it so it was one application rendering its own data. It also proved a good learning source for others as it was simple enough. I just hope it useful to at least someone.

Docker, docker-compose and Traefik

This is deployed in production on a Linux server using Docker and docker-compose. I have included the build for this and you can see the uberjar is build within docker itself and shoved into another layer to be executed. Its a clean setup. Also work mentioning I use traefik for the routing and you will see how that is setup as well.

$ docker-compose build
$ docker-compose push
$ docker-compose up -d

also the usual

$ lein ring uberjar

or for development

$ lein ring server-headless

License

MIT License.

mcserverinfo's People

Stargazers

 avatar

Watchers

 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.