063436a3dd
publish it |
5 years ago | |
---|---|---|
node_modules | 5 years ago | |
public | 5 years ago | |
.DS_Store | 5 years ago | |
.gitattributes | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago | |
data.js | 5 years ago | |
license.txt | 5 years ago | |
package-lock.json | 5 years ago | |
package.json | 5 years ago | |
promo.gif | 5 years ago | |
server.js | 5 years ago |
README.md
LIKELIKE Online
The tiniest MMORPG. Choose an avatar and hang out with your friends in a virtual version of LIKELIKE a videogame gallery in Pittsburgh, PA.
This project was created during the COVID-19 quarantine and was meant to evoke the social aspect of LIKELIKE's exhibitions.
You can mod it to create your own virtual exhibitions, multi-user environments or games.
It's designed to be extensible by just editing the data.js file and a few settings at the beginning of server.js and client.js.
The code is extensively commented but it was put together very quickly (about a 10 days) so it's not meant to be a robust, beginner-friendly tool. You'll need some node.js and javascript knowledge to adapt it to your needs. Use at your own risk.
LIKELIKE Online is built with node.js, socket.io, p5.js, and the add-on p5.play, it's hosted on glitch.com.
LIKELIKE Online is a project by Molleindustria.
Licensed under a GNU Lesser General Public License v2.1.
Publishing on Glitch
Glitch is a community and a suite of online tools to develop web applications. Glitch provides free hosting for node.js projects. Most web hosts don't give you that degree of access. Another popular platform is heroku. Glitch offers a code editor, file storage, and an intergrated terminal. You can create node applications from scratch via browser. Glitch allows you to browse and remix other people projects.
Warning A free Glitch account has a limit of 4000 requests per hour, this projects loads a lot of individual image assets so you can go over the limit pretty easily. Consider purchasing a paid account for a public-facing project.
LIKELIKE Online is already structured for glitch deployment with a server.js and a package.json on the root, and a "public" folder. You can deploy this app to Glitch via github or other git repositories
Alternatively you can follow this process to deploy it starting from a zipped project folder:
-
Create a ZIP file of the project.
-
Upload it to the assets folder in your project, click it and click Copy Url
-
Starting from an empty or existing glitch project, navigate to Settings > Advance Options > Open Console
-
In the console, pull the zip file from the url (keep file.zip name, it's just a temporary file)
wget -O file.zip https:///url-to-your-zip
-
Extract it to the root folder
unzip file.zip -d .
-
Remove the zip file
rm file.zip
-
Refresh our app so the new files are shown in the editor and published
refresh
-
Important The .env file contains the private variables like admin usernames and passwords. It won't be zipped or overwritten so if you have to copy its content manually in the glitch editor
An example of .env file:
ADMINS=username1|pass1,username2|pass2
PORT = 3000