This is a website that displays Hypixel Housing information using the Hypixel API.
- Official instance: https://housing.luckyc.dev
- Get a Hypixel API key from https://developer.hypixel.net/dashboard
- Install NodeJS (tested on v20.12.2 & npm v10.9.2 but should work on latest)
- Clone this repo (
git clone https://github.com/luckycdev/housing.git) - Inside of the cloned repos directory (
cd housing), enter the server directory (cd server) - Inside of the server directory, run
npm init -y, and thennpm install - If you are using nginx on linux, create a file in your sites-enabled directory with whatever your domain is, and use this as a reference -- you will need to change the lines with comments -- for certs you can use
sudo cerbot --nginx(tested on nginx ubuntu v1.18.0 & certbot v4.0.0 but should work on latest) - Rename the file called
.env.examplein the server directory to.env - Open the file called
.envin the server directory. Inside of this file, put your API key found in step 1. (Example contents:API_KEY=df9sd6f798sd-sdfyse87f6sd-sd89f6sd9f-sd87f678sdf) - To start the backend server, you will simply run
node server.jsinside of the server directory. I recommend you use something like screen to keep the server alive when you close out of your SSH.
linux screen tutorial
Install Screen sudo apt install screen
Create the screen screen -S housing
And then if you want to return to your screen, run screen -r housing
If you want to kill your screen, run screen -X -S housing kill
- The site should be running at the domain and your server should be working!
- Note: if using nginx on linux you may have to run
sudo chmod -R 755 housing(change the "housing" to the path of your housing directory) for nginx to make the website work (and then maybesudo systemctl reload nginxand/orsudo systemctl restart nginx)
Help can be found at https://discord.gg/AQ4sDF6Mkz
- sorting by player count, cookie count, and recent
- make searching houses too
- make search enter key actually search - maybe an input instead of a textarea idk
- make sure all houses are getting put in cookie cache. right now it only uses the active houses but if you click on someone who has an active house and click on a different house of theirs it might not have a cookie chart
- §k support
- make whole site css look a bit nicer
- make house containers insides nicer (like (cookie count) (cookie emoji) and like (player count) (person emoji) and font size and colors etc.)
- save all houses from a user to a cache so when you go to the player it shows all of their houses - check if it still exists before it shows it and if not remove from cache - might need to raise safe rate limit
- make §0 have no text shadow
- check all error msgs showing on pages and make sure all error codes implemented
- random house button
- investigate house container sometimes showing error for being unable to read username undefined - only seen once
- 32 character house name with no spaces goes outside container - find fix (make smaller if long or something)
- when multiple notifications it teleports up when other goes away but it should slide up smoothly
- loading text after search with no houses - also should show player info still if no houses
- check everything on mobile
- going on a player or house does do 2 /playerinfo requests to the node server, make it one
