- JavaScript 71.6%
- Pug 19.2%
- CSS 9.2%
| bin | ||
| public | ||
| routes | ||
| views | ||
| .gitignore | ||
| apidocs.md | ||
| app.js | ||
| config.sample.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| schema.sql | ||
osuchatsearch
An API and a frontend interface that lets you retrieve data from a message database. This is aimed specifically for the osu! chat, and works with node-irc-logger, using the same database.
THIS CODE IS DISCONTINUED AND NOT RECOMMENDED FOR USAGE IN PRODUCTION, ESPECIALLY DUE TO THE HUGE DATABASE LOAD THAT IS BEING SENT FOR A SINGLE REQUEST WHEN WORKING WITH A NORMAL DATABASE.
The code and the interface overall are pretty great, although if you plan on using it, you might want to check out the open issues and, most important of all, implemenet a proper db request caching system.
Running
if you're not experienced with this,
it might take a very, very long time.
-- GLADoS
First of all, clone this git repository into a server, or your machine. So far, it has been proved to be working only on Arch Linux, although it should work well on any other OS (because nodejs).
- fire up a terminal
- if you haven't installed git, nodejs and npm, install them.
git clone <this repo>cd osuchatsearch2npm installcp config.sample.js config.jsvim config.jscd ..git clone https://github.com/TheHowl/node-irc-logger.gitcd node-irc-loggercp config.sample.js config.jsvim config.jsnpm install- apply schema.sql to the database in which the mysql is allowed to access
screennode index.jsCTRL+A-Dcd ..cd osuchatsearch2- apply schema.sql to the database in which the mysql is allowed to access
screenexport PORT=whatever portvim /etc/nginx/conf.d/whatever configuration- make a proxy to the port listen to port 80 and yeah what-so-fucking-ever google it
npm startCTRL+A-D
HELPPPPPPP!!!! HOW DO I VIM?????
if you don't feel comfy with vim, you can still use nano. whatever text editor will do it. anyway, for what we need to do in here:
- you enter insert mode in vim by typing
ins/inserton your keyboard. - in insert mode, you can edit the file normally.
- when you've finished doing your stuff, type
esc - then, type
:wto write the file. - finally, type
:qto exit the file.
There should be more things here. But when I wrote it on the original repo, I didn't bother going over it. And now i'm even more lazy. So, figure out everything for yourself /shrugs.