Comments (16)
See https://github.com/egoist/codepan#development, run yarn
to install deps.
Basically you can run yarn dev
or npm run dev
to run it in a dev server.
If you want a production build, run yarn build
and it will be available in ./dist
from codepan.
sh: 1: poi: not found when I run npm run dev
from codepan.
Have you run yarn
to install deps?
from codepan.
I installed yarn, run yarn build successfully. Got a dist folder. Now how to run it?
from codepan.
I successfully run it on dev using yarn dev. How to run it on production server?
from codepan.
it's a static website so you can run it locally with serve, eg: serve dist --single
(single page app mode)
from codepan.
OK. What we want is, want to many urls like jsbin available .How to do that?
from codepan.
want to many urls like jsbin available
what do you mean?
from codepan.
Actually we want to install in a site and embed many html/css/js examples in various pages.
for example we have created an example
https://codepan.net/gist/0ffcc5fa021aa45b87c0792d8362b5b5
Now we want to embed the above in various pages of our site and the url will be
https://example.com/html-css-js/0ffcc5fa021aa45b87c0792d8362b5b5
Thanks for your response.
from codepan.
I just define more clearly after creating the above url i.e. https://example.com/html-css-js/0ffcc5fa021aa45b87c0792d8362b5b5
will be embed in https://example.com/js-examples page or any other pages under https://example.com.
from codepan.
I think you mean this #11
from codepan.
Yes. Almost. Let me try.
from codepan.
Well, for running it on production, I want to run it like 'forever somefile' so that it runs in the background and I can use this to render multiple urls, each presenting one code snippet. Is that possible. serve does not serve my purpose.
from codepan.
this is just an SPA, so I think it would be tricky even if it's possible.
from codepan.
So, unlike jsbin I can not run the app in the background and then create multiple instances (urls) each presenting one url fetched from Github you say?
from codepan.
it's a static website so you can run it locally with serve, eg:
serve dist --single
(single page app mode)
I want to use node.js to run the ./dist folder. Could you please tell me how can I do this?
from codepan.
Related Issues (20)
- Must specify access token via Authorization header
- click login , Adult interest ads. always appered HOT 3
- Love
- Make Gists human-readable HOT 1
- console.log with multiple arguments doesn't handle newline HOT 1
- Disable anonymous Gist functionality HOT 1
- Add Preview Mode Toggle
- Github login with OAuth is not working HOT 3
- 1.0 roadmap
- add query string parameters for setting panel width HOT 3
- Easily add libraries from CDN HOT 1
- Example of adding PostCSS plugins? HOT 1
- ES-Import boilerplate is not working: SyntaxError HOT 1
- Code completion function
- I feel confused about the codepan running result HOT 3
- yarn build failed 'compilation' of undefined
- Program Interface Problem HOT 1
- Overlapped top buttons in Mobile version HOT 2
- Vue-JSX babel error when using `onInput`
- Rewrite the whole thing! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codepan.