Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install and run codpan #31

Open
rtwk opened this issue Sep 18, 2017 · 16 comments
Open

How to install and run codpan #31

rtwk opened this issue Sep 18, 2017 · 16 comments

Comments

@rtwk
Copy link

rtwk commented Sep 18, 2017

Coned it. Now how to instal and run it.

@egoist
Copy link
Owner

egoist commented Sep 18, 2017

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

@rtwk
Copy link
Author

rtwk commented Sep 18, 2017

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

@egoist
Copy link
Owner

egoist commented Sep 18, 2017

Have you run yarn to install deps?

@rtwk
Copy link
Author

rtwk commented Sep 18, 2017

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

@rtwk
Copy link
Author

rtwk commented Sep 18, 2017

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

@egoist
Copy link
Owner

egoist commented Sep 18, 2017

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

@srayy
Copy link

srayy commented Sep 18, 2017

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

@egoist
Copy link
Owner

egoist commented Sep 18, 2017

want to many urls like jsbin available

what do you mean?

@srayy
Copy link

srayy commented Sep 18, 2017

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.

@srayy
Copy link

srayy commented Sep 18, 2017

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.

@egoist
Copy link
Owner

egoist commented Sep 18, 2017

I think you mean this #11

@rtwk
Copy link
Author

rtwk commented Sep 18, 2017

Yes. Almost. Let me try.

@rtwk
Copy link
Author

rtwk commented Sep 18, 2017

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.

@egoist
Copy link
Owner

egoist commented Sep 18, 2017

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

@rtwk
Copy link
Author

rtwk commented Sep 18, 2017

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?

@llh1187
Copy link

llh1187 commented Dec 14, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants