Git Product home page Git Product logo

osu!archive is an osu! archival site, though the code could possibly be used for archiving other things

setup

requirements:

  • php7, but preferably php8
  • mysql-server
  • mysqli
  • [admin panel] curl

clone the php anywhere, if you have git installed you can just run git clone https://github.com/osu-archive/web. make sure to clone it somewhere where your web server can access

you'll need to setup a database using this template sql. i won't explain how to do this, but if you're trying to use this code you should know how to anyway.

edit config.php and paste this in

<?php
$webhook = "DISCORDWEBHOOK";

$clientsecret = 'OSUOAUTH_SECRET';
$server = '127.0.0.1';
$user = 'c0osuarchive';
$pass = 'database_password';
$name = 'c0osuarchive';

try{
    $db = mysqli_connect($server, $user, $pass, $name);
} catch (Exception $e) {
    echo 'Caught exception: ',  $e->getMessage(), "\n";
}

if (!$db) {
    echo "Error: Unable to connect to MySQL." . PHP_EOL;
    echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
    echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
    exit;
}

the discord webhook is for logging page visits, it shows the first two or three digits of the visitor's ip. this is optional.

the client secret is used for the osu! oauth system for the admin panel. this isn't required. i won't be explaining admin panel setup here. this is optional.

the rest is self explanitory, after setting this up if all goes right you should have a functional version of the osu!archive website

some code is commented, though not all. feel free to make an issue or pull request for stuff

WARNING: the font is not included in this repository, i recommend you include comfortaa from google fonts or something along the lines of that.

other licences

Parsedown by Emanuil Rusev (MIT Licence)

osu!archive's Projects

web icon web

archiving osu versions for the future

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.