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

set in local #49

Open
strongman22255 opened this issue Oct 2, 2023 · 3 comments
Open

set in local #49

strongman22255 opened this issue Oct 2, 2023 · 3 comments

Comments

@strongman22255
Copy link

Hi. Mr MiniPear.
I am using your gossip ppt maker web. And it is acually brilliant.
You shared the code in github, but I don't know how to run in local.
do you mind tell me how to set it in local?

@vluz
Copy link

vluz commented Oct 5, 2023

I've done it, but it's an ultra-contrived way.

Hope you have podman (or docker) available. if on Windows, install podman desktop.
If you have docker instead of padman, just replace all the podman in commands for docker


Open a command prompt and do:
podman pull widhaprasa/node-umi:10.23.0-alpine3.11

Wait for image to download.

podman run -it -p 8000:8000 widhaprasa/node-umi:10.23.0-alpine3.11 sh

You should get a shell like this: / #

cd /root to go to to home dir

Git is needed so do
apk add --no-cache git

git clone https://github.com/vluz/gossip.git gets you my version already built

(if you prefer to clone this rep instead, you'll have to enter umi build after the yarn command below)

cd gossip

yarn

Wait for packages to install, takes a bit.

umi dev raises a dev server running on port 8000

Point your browser at http://127.0.0.1:8000/
If all went ok you should see gossip running.

Test around see if all is ok.

Ctrl+C will stop the server and exit will get you out of the shell.

To make your changes permanent and not having to go trough all this again do:

podman ps -a

Find the image you've just worked on, and note it's name or container ID

To commit to a new local image do:

podman commit CONTAINER_NAME_OR_ID node-umi-gossip
For example in my case it was podman commit 8b472ad8987b node-umi-gossip

When you need it, run like this:
podman run -id -p 8000:8000 localhost/node-umi-gossip sh -c "cd /root/gossip&&umi dev"


Very contrived but it works and it's portable.

Send me message if you have any troubles.

@pearmini
Copy link
Member

pearmini commented Oct 6, 2023

@vluz Thanks for the detailed guidelines!
@strongman22255 In general, there are several steps:

  • Install Node
  • Clone the project: git clone [email protected]:gossip-ink/gossip.git
  • Change into the root dir of the project: cd gossip
  • Install all the dependencies: npm install
  • Run the project: npm run start

Then you open a browser page: http://127.0.0.1:8000/.

@strongman22255
Copy link
Author

Thank you for your help XD

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

3 participants