Coder Social home page Coder Social logo

jgl / cci-diploma-show Goto Github PK

View Code? Open in Web Editor NEW

This project forked from molleindustria/likelike-online

2.0 3.0 2.0 17.44 MB

The online show for the CCI Diploma 2020 graduating year

Home Page: https://diploma.cci.arts.ac.uk/

License: GNU Lesser General Public License v2.1

JavaScript 96.09% HTML 2.33% CSS 1.58%

cci-diploma-show's Introduction

CCI-Diploma-Show

The tiniest MMORPG. Choose an avatar and hang out with your friends while attending the end of year (2020) show for the UAL Creative Computing Institute's Diploma in Creative Computing.

>>>Try it here<<<

The project was based on an earlier project - LIKELIKE Online by Molleindustria.

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.

CCI-Diploma-Show was built with node.js, socket.io, p5.js, and the p5.js add-on p5.play.

Licensed under a GNU Lesser General Public License v2.1.

Team

CCI-Diploma-Show was created by students from the Diploma: Bea, Eunah, Jessie and Max.

The .env file

.env is a text file in the root folder that contains private variables, in this case admin usernames and passwords and the port used by the project. It's not published on github and it's not automatically published on glitch so you may have to create it manually and/or copy paste the content in the glitch editor and/or in your code editor if you are running is as a local project.

An example of .env file for LIKELIKE online is:

(ADMINS = adminname1 | pass1), adminname2 | pass2;
PORT = 3000;

The admin names are reserved. Logging in as "adminname|pass" (nickname and password separated by a "|") will grant the user admin priviledges such as banning IP or sending special messages.

Editing locally: guide for dev team

First make sure you sure you have git and Node.js installed

Downloading and running

  • Click on the Code button in this repo to get its url
  • Clone using git clone "url"on your command line
  • Navigate to the repository on your command line
  • Run npm install on your command line to download all required node modules
  • Type in node server.js to run and go to localhost:3000 to view

Branching: work on code without affecting the master branch

  • To make a new branch and switch to it at the same time, run git checkout -b branchName
    • This is shorthand for:
      git branch branchName
      git checkout branchName
    • You can edit code and make changes here without affecting the master branch (tip: name the branch based on what you're editing to make it easy to understand, e.g. "server" or "galleries" or "backgrounds")
  • Save your changes and commit to this branch:
    git add . (adds all your updated files to the staging area)
    git commit -m "Your message here" (commits your changes with a message)

For more detail visit the official git documentation

Updating the remote repository on GitHub and making pull requests to merge

  • Make sure your local repository is up to date
    • Navigate back to the master branch (or whichever branch you want to merge with)
      git checkout master(/other)
    • Update your local master(/other) branch by pulling any updates that may have been made to the remote repository to your local one
      git pull
    • Navigate back to your working branch
      git checkout branchName
  • Merge the master(/other) branch into your branch (note: there may be merge conflicts if different people have worked on the same lines of code, so keep communicating!)
    git merge master(/other)
  • If you have made any changes since your last commit, commit them with a message
    git commit -m "your message"
  • Push your changes to GitHub. Your latest changes to your branch can now be viewed by other team members.
    git push
  • When your code is ready, it's time to make a pull request on GitHub. Got to your branch on GitHub and click on New pull request. Select the base repository (JGL/cci-diploma-show) with base: master(/other). Add a short comment to describe the changes you've made and then click Create pull request
  • The project manager or team member overseeing that branch will review your changes and decide whether to commit them. If further changes need to be made, you can add commits to your pull request after you have made them. If you want to address a specific team member, use their @ (like in any other social media site). Other team members can add comments to the code in your pull request if they have any, either directly to the line(s) in question, or as a general comment.
  • If your pull request is accepted, the team member who has accepted it should delete the branch.
  • To delete a branch locally, use git branch -d branchName

For more detail check out this video

cci-diploma-show's People

Contributors

bats1996 avatar eunah-lee avatar jessieziyun avatar jgl avatar maximilian-zimmerer avatar molleindustria avatar unknowndomain avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.