Merge pull request 'Improve README, move development info to new doc' (#136) from doc/readme into master
CI / Lint (push) Successful in 54s
CI / Test (push) Successful in 1m13s

Reviewed-on: #136
This commit was merged in pull request #136.
This commit is contained in:
raucao committed 2026-11-29 12:43:28 +00:00
commit 42ccad158d
2 files changed
+110 -76

No files matched your search

+22 -76
View File
@@ -11,94 +11,40 @@ Marco (as in [Marco Polo][1]) is an unhosted maps application that respects
your privacy and choices.
It allows users to connect their own remote storage to sync place bookmarks
across apps and devices. It also supports the decentralized sharing of place
photos (and soon reviews) via [Nostr][2].
across apps and devices. It also supports the decentralized sharing and
discovery of place photos (and soon reviews) via [Nostr][2].
This README outlines the details of collaborating on this Ember application, or
just building and deploying it for yourself.
## Try it
## Prerequisites
- https://marco.earth
You will need the following things properly installed on your computer.
Marco runs in any modern browser, and can be installed as a
[progressive web app][3] on phones and desktops. On mobile, open the URL above
and choose "Add to Home Screen" (iOS Safari) or "Install app" (Android Chrome);
Marco then launches full screen from its own icon.
- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/)
- [pnpm](https://pnpm.io/)
- [Google Chrome](https://google.com/chrome/)
## Repositories & Contributions
## Installation
The upstream repository is available on both Gitea and ngit (git over Nostr),
and issues and pull requests are accepted on either:
- `git clone <repository-url>` this repository
- `cd marco`
- `pnpm install`
- Gitea: https://gitea.kosmos.org/raucao/marco
- ngit: https://gitworkshop.dev/raucao@kosmos.org/relay.ngit.dev/marco
## Running / Development
## Documentation
- `pnpm start`
- Visit your app at [http://localhost:4200](http://localhost:4200).
- Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).
- [Development](doc/dev/development.md) — prerequisites, running locally,
tests, linting, building and deployment
- [Nostr notes](doc/nostr/) — protocol and feature design documents
### Code Generators
## License
Make use of the many generators for code, try `pnpm ember help generate` for more details
[GNU Affero General Public License v3.0](LICENSE)
### Running Tests
## Contact
- `pnpm test`
### Linting
- `pnpm lint`
- `pnpm lint:fix`
### Building
- `pnpm vite build --mode development` (development)
- `pnpm build` (production)
### App Icon
- `pnpm build:icons` generates PNGs of all sizes from `public/icons/icon.svg`
To run the script, you need `imagemagick` and `librsvg` installed:
- **Arch Linux:** `pacman -S imagemagick librsvg`
- **Ubuntu/Debian:** `apt install imagemagick librsvg2-bin`
### Deploying
Marco is deployed to two domains from two branches, both serving the committed
`release/` directory:
- `master` → https://marco.earth (`git push 5apps master`)
- `kosmos` → https://marco.kosmos.org (`git push 5apps-old kosmos:master`)
The branches differ only in `.env.production` (app origin + OSM OAuth client
ID); everything else is identical. Prepare a release on `master`, then sync the
`kosmos` branch and push both:
```sh
pnpm version patch # bumps version, runs lint/tests, rebuilds release/
git push origin master && git push 5apps master
./scripts/sync-kosmos.sh # merges master into kosmos and rebuilds release/
git push origin kosmos && git push 5apps-old kosmos:master
```
Both 5apps Deploy apps use `release/` as their build directory.
- Or deploy `release/` to any static file host (ideally routing all 404s to
`index.html` for launching with client-side routes to work)
## Further Reading / Useful Links
- [ember.js](https://emberjs.com/)
- [remoteStorage.js](https://remotestorage.io/rs.js/docs/)
- [@remotestorage/module-places](https://gitea.kosmos.org/raucao/remotestorage-module-places)
- [Vite](https://vite.dev)
- Development Browser Extensions
- [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
- [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
E-Mail, Chat, Social, Lightning: [raucao@kosmos.org](mailto:raucao@kosmos.org)
[1]: https://en.wikipedia.org/wiki/Marco_Polo
[2]: https://nostr.org
[3]: https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps
+88
View File
@@ -0,0 +1,88 @@
# Development
How to collaborate on Marco, or just build and deploy it for yourself.
> Scope: local setup, running, tests, linting, builds and deployment. For
> subsystem deep dives see the other documents in this directory, and for
> Nostr-related design notes see [`doc/nostr/`](../nostr/).
## Prerequisites
You will need the following things properly installed on your computer.
- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/)
- [pnpm](https://pnpm.io/)
- [Google Chrome](https://google.com/chrome/)
## Installation
- `git clone https://gitea.kosmos.org/raucao/marco.git`
- `cd marco`
- `pnpm install`
## Running / Development
- `pnpm start`
- Visit your app at [http://localhost:4200](http://localhost:4200).
- Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).
### Code Generators
Make use of the many generators for code, try `pnpm ember help generate` for more details
### Running Tests
- `pnpm test`
### Linting
- `pnpm lint`
- `pnpm lint:fix`
### Building
- `pnpm vite build --mode development` (development)
- `pnpm build` (production)
### App Icon
- `pnpm build:icons` generates PNGs of all sizes from `public/icons/icon.svg`
To run the script, you need `imagemagick` and `librsvg` installed:
- **Arch Linux:** `pacman -S imagemagick librsvg`
- **Ubuntu/Debian:** `apt install imagemagick librsvg2-bin`
### Deploying
Marco is deployed to two domains from two branches, both serving the committed
`release/` directory:
- `master` → https://marco.earth (`git push 5apps master`)
- `kosmos` → https://marco.kosmos.org (`git push 5apps-old kosmos:master`),
legacy and kept only for the existing deployment
The branches differ only in `.env.production` (app origin + OSM OAuth client
ID); everything else is identical. Prepare a release on `master`, then sync the
`kosmos` branch and push both:
```sh
pnpm version patch # bumps version, runs lint/tests, rebuilds release/
git push origin master && git push 5apps master
./scripts/sync-kosmos.sh # merges master into kosmos and rebuilds release/
git push origin kosmos && git push 5apps-old kosmos:master
```
Both 5apps Deploy apps use `release/` as their build directory.
- Or deploy `release/` to any static file host (ideally routing all 404s to
`index.html` for launching with client-side routes to work)
## Further Reading / Useful Links
- [ember.js](https://emberjs.com/)
- [remoteStorage.js](https://remotestorage.io/rs.js/docs/)
- [@remotestorage/module-places](https://gitea.kosmos.org/raucao/remotestorage-module-places)
- [Vite](https://vite.dev)