donut is a utility to create totally rad doughnuts donuts!
git clone ...
,npm install
,npm start
to facilitate a fun and interactive demo for coinstac.
yes, we know we spelled doughnut wrong! donut is spelled in the donutjs tradition! 😄
do all the donuty things. :doughnut:
Home Page: https://dino-dna.github.io/donut/
License: MIT License
donut is a utility to create totally rad doughnuts donuts!
git clone ...
, npm install
, npm start
to facilitate a fun and interactive demo for coinstac.
yes, we know we spelled doughnut wrong! donut is spelled in the donutjs tradition! 😄
Hi! I saw this site in post-eject survey and would like to follow up.
You said that setting homepage
field didn’t work for GH Pages build.
I just changed homepage
to point to my fork, ran npm run build
and followed the deployment instructions. You can see that the website loads: https://gaearon.github.io/donut/.
It doesn’t display any route (just the blue page), but this is because you’re using browserHistory
for routing, and it’s not really compatible with non-root directory. I believe this problem is described here, with two possible workaround: either use hashHistory
or add a redirecting 404.html
:
Note that GitHub Pages doesn't support routers that use the HTML5
pushState
history API under the hood (for example, React Router usingbrowserHistory
). This is becasue when there is a fresh page load for a url likehttp://user.github.io/todomvc/todos/42
, where/todos/42
is a frontend route, the GitHub Pages server returns 404 because it knows nothing of/todos/42
. If you want to add a router to a project hosted on GitHub Pages, here are a couple of solutions:
- You could switch from using HTML5 history API to routing with hashes. If you use React Router, you can switch to
hashHistory
for this effect, but the URL will be longer and more verbose (for example,http://user.github.io/todomvc/#/todos/42?_k=yknaj
). Read more about different history implementations in React Router.- Alternatively, you can use a trick to teach GitHub Pages to handle 404 by redirecting to your
index.html
page with a special redirect parameter. You would need to add a404.html
file with the redirection code to thebuild
folder before deploying your project, and you’ll need to add code handling the redirect parameter toindex.html
. You can find a detailed explanation of this technique in this guide.
When I look at your current deployment which you said was problematic, I see this in index.html
:
<script type="text/javascript" src="/static/js/bundle.js"></script></body>
However, since I just built the project locally (see my fork) and deployed it, I see this in index.html
instead:
<script type="text/javascript" src="/donut/static/js/main.1223cbe1.js"></script>
This means that you rebuilt the project with react-scripts
with a version less than 0.2.0
, perhaps by mistake, or forgot to deploy it.
You shouldn’t need to eject to use GH Pages.
Finally, if you have problems with Create React App, please be so kind to file an issue. If you just asked for a clarification, we could have resolved this without ejecting 😉 . And who knows, maybe we had a bug, and your report would have helped us fix it.
Thanks!
onReceiveDonut
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.