GithubHelp home page GithubHelp logo

How to install and run codpan about codepan HOT 16 OPEN

egoist avatar egoist commented on August 20, 2024
How to install and run codpan

from codepan.

Comments (16)

egoist avatar egoist commented on August 20, 2024

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.

rtwk avatar rtwk commented on August 20, 2024

sh: 1: poi: not found when I run npm run dev

from codepan.

egoist avatar egoist commented on August 20, 2024

Have you run yarn to install deps?

from codepan.

rtwk avatar rtwk commented on August 20, 2024

I installed yarn, run yarn build successfully. Got a dist folder. Now how to run it?

from codepan.

rtwk avatar rtwk commented on August 20, 2024

I successfully run it on dev using yarn dev. How to run it on production server?

from codepan.

egoist avatar egoist commented on August 20, 2024

it's a static website so you can run it locally with serve, eg: serve dist --single (single page app mode)

from codepan.

srayy avatar srayy commented on August 20, 2024

OK. What we want is, want to many urls like jsbin available .How to do that?

from codepan.

egoist avatar egoist commented on August 20, 2024

want to many urls like jsbin available

what do you mean?

from codepan.

srayy avatar srayy commented on August 20, 2024

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.

srayy avatar srayy commented on August 20, 2024

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.

egoist avatar egoist commented on August 20, 2024

I think you mean this #11

from codepan.

rtwk avatar rtwk commented on August 20, 2024

Yes. Almost. Let me try.

from codepan.

rtwk avatar rtwk commented on August 20, 2024

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.

egoist avatar egoist commented on August 20, 2024

this is just an SPA, so I think it would be tricky even if it's possible.

from codepan.

rtwk avatar rtwk commented on August 20, 2024

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.

llh1187 avatar llh1187 commented on August 20, 2024

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)

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.