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

Add a create helper for node apps #224

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Add a create helper for node apps #224

merged 1 commit into from
Nov 7, 2023

Conversation

alexjg
Copy link
Contributor

@alexjg alexjg commented Nov 6, 2023

It's frequently useful to be able to quickly jump into a new project with the websocket network adapter and filesystem storage set up so that you can start experimenting with repo. This commit adds an NPM "initializer" which can be used as follows:

npm create @automerge/node-repo-app

This quickly creates an NPM package with the necessary dependencies and a simple index.js.

It's frequently useful to be able to quickly jump into a new project
with the websocket network adapter and filesystem storage set up so that
you can start experimenting with repo. This commit adds an NPM
"initializer" which can be used as follows:

   npm create @automerge/node-repo-app

This quickly creates an NPM package with the necessary dependencies and
a simple `index.js`.
alexjg added a commit to automerge/automerge.github.io that referenced this pull request Nov 6, 2023
The second half of the quickstart was a bit hand wavy, just suggesting
that the user "in a second process (such as another tab) put the
following code". This commit uses the @automerge/create-repo-node-app
helper (yet to be merged:
automerge/automerge-repo#224) to guide the
reader through creating a node app to use as the second process.
alexjg added a commit to automerge/automerge.github.io that referenced this pull request Nov 6, 2023
The second half of the quickstart was a bit hand wavy, just suggesting
that the user "in a second process (such as another tab) put the
following code". This commit uses the @automerge/create-repo-node-app
helper (yet to be merged:
automerge/automerge-repo#224) to guide the
reader through creating a node app to use as the second process.
@pvh pvh merged commit 97f4d5e into main Nov 7, 2023
alexjg added a commit to automerge/automerge.github.io that referenced this pull request Nov 8, 2023
The second half of the quickstart was a bit hand wavy, just suggesting
that the user "in a second process (such as another tab) put the
following code". This commit uses the @automerge/create-repo-node-app
helper (yet to be merged:
automerge/automerge-repo#224) to guide the
reader through creating a node app to use as the second process.
alexjg added a commit to automerge/automerge.github.io that referenced this pull request Nov 8, 2023
The second half of the quickstart was a bit hand wavy, just suggesting
that the user "in a second process (such as another tab) put the
following code". This commit uses the @automerge/create-repo-node-app
helper (yet to be merged:
automerge/automerge-repo#224) to guide the
reader through creating a node app to use as the second process.
alexjg added a commit to automerge/automerge.github.io that referenced this pull request Nov 8, 2023
The second half of the quickstart was a bit hand wavy, just suggesting
that the user "in a second process (such as another tab) put the
following code". This commit uses the @automerge/create-repo-node-app
helper (yet to be merged:
automerge/automerge-repo#224) to guide the
reader through creating a node app to use as the second process.
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

Successfully merging this pull request may close these issues.

2 participants