https://github.com/kanocomputing/world
🚨Unmaintained 🚨A part of Kano World implemented in Polymer 1. No longer in use.
https://github.com/kanocomputing/world
Last synced: about 1 year ago
JSON representation
🚨Unmaintained 🚨A part of Kano World implemented in Polymer 1. No longer in use.
- Host: GitHub
- URL: https://github.com/kanocomputing/world
- Owner: KanoComputing
- Created: 2016-10-24T12:22:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-18T14:54:25.000Z (over 7 years ago)
- Last Synced: 2025-01-13T12:45:51.823Z (over 1 year ago)
- Language: HTML
- Homepage:
- Size: 8.21 MB
- Stars: 3
- Watchers: 25
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚨world - Unmaintained 🚨
This codebase was a transition step before we were able to re-implement Kano World entirely in Polymer. As of January 2019, it has been completely [superseded](https://github.com/KanoComputing/hour-of-code/).
## Dependencies
The dependencies of the project itself are managed with `bower`, the dependencies for the build/dev tasks are managed with `npm` modules.
A good way to start working on the project is to run:
`npm install` or `yarn`
`bower install`
## Development
To allow the fastest onboarding possible on this project, no build task is necessary to make it run.
Just starting a [webserver](https://www.npmjs.com/package/local-web-server) with the folder `src` as root and a SPA strategy will allow you to run the website.
For convenience sake, a gulp task `watch` was created. It uses browser sync and reload the pages everytime a change is made.
Update: Since we need the app player from Kano Code, a small build step is necessary to develop on this project.
Start with `gulp dev` to populate the `www` folder, then `gulp watch` will keep it up to date with the `src` folder as you change it.
If you create new files, don't forget to rerun `gulp dev` as `gulp watch` doesn't register new files to watch
## Building
To build for production, we use `gulp`.
Just run `gulp build`, the task will take care of bundling the files, taking care of creating shards for views and low usage components.
It also babelify the js, compress the HTML/CSS/JS and generate a service worker/appcache manifest.
This task also uses the env variable `NODE_ENV` to determine which config file to bundle. See `src/js/config.html`.
As for now, this website lives in parallel of the previous Kano World. To keep the same subdomain but show different websites, a server side logic
was configured. It means that to avoid conflict of assets, we need to put this website in a subfolder. This is why the build task also add the prefix `/new/` to all assets.