2021-01-09 17:03:25 +00:00
# FediLove
2018-04-14 16:41:56 +00:00
2021-01-09 17:03:25 +00:00
A web client to turn [Mastodon ](https://joinmastodon.org ) into a **Federated Meeting and Dating** platform.
This client uses **Mastodon API** to implement dating App features such as: **Meeting people, Profile setup, Preferences, Matching, Chating, Sharing**
2018-04-02 06:15:52 +00:00
2021-01-09 17:03:25 +00:00
It is a fork of [Pinafore ](https://github.com/nolanlawson/pinafore )
2018-04-02 06:15:52 +00:00
2021-01-09 17:03:25 +00:00
FediLove is available at [love.nogafam.es ](https://love.nogafam.es ).
2018-04-02 06:15:52 +00:00
2021-01-09 17:03:25 +00:00
See the [user guide ](https://git.nogafam.es/nogafam/fedilove-ui/src/branch/master/docs/User-Guide.md ) for basic usage. See the [admin guide ](https://git.nogafam.es/nogafam/fedilove-ui/src/branch/master/docs/Admin-Guide.md ) if FediLove cannot connect to your instance.
For updates and support, follow [@admin@masto.nogafam.es ](https://masto.nogafam.es/@admin ).
2018-04-21 17:59:52 +00:00
2018-04-02 06:15:52 +00:00
## Browser support
2021-01-09 17:03:25 +00:00
FediLove supports the latest versions of the following browsers:
2018-04-02 06:15:52 +00:00
- Chrome
- Edge
- Firefox
- Safari
Compatible versions of each (Opera, Brave, Samsung, etc.) should be fine.
2018-02-18 22:38:10 +00:00
2018-04-15 16:48:52 +00:00
## Building
2018-02-18 22:38:10 +00:00
2021-01-09 17:03:25 +00:00
FediLove requires [Node.js ](https://nodejs.org/en/ ) v8+ and [Yarn ](https://yarnpkg.com ).
2018-08-25 20:04:41 +00:00
2021-01-09 17:03:25 +00:00
To build FediLove for production, first install dependencies:
2018-04-15 16:48:52 +00:00
2019-03-02 22:44:19 +00:00
yarn --production --pure-lockfile
2019-02-13 05:49:11 +00:00
Then build:
2019-02-10 19:30:00 +00:00
yarn build
2019-02-13 05:49:11 +00:00
Then run:
2019-02-13 07:12:50 +00:00
PORT=4002 node server.js
2018-04-15 16:48:52 +00:00
2018-05-25 02:59:48 +00:00
### Docker
2018-12-19 04:50:30 +00:00
To build a Docker image for production:
2018-05-25 02:59:48 +00:00
docker build .
docker run -d -p 4002:4002 [your-image]
2021-01-09 17:03:25 +00:00
Now FediLove is running at `localhost:4002` .
2018-04-15 16:48:52 +00:00
2020-05-08 02:45:52 +00:00
### docker-compose
Alternatively, use docker-compose to build and serve the image for production:
docker-compose up --build -d
The image will build and start, then detach from the terminal running at `localhost:4002` .
2018-08-25 20:04:41 +00:00
### Updating
2021-01-09 17:03:25 +00:00
To keep your version of FediLove up to date, you can use `git` to check out the latest tag:
2018-08-25 20:04:41 +00:00
git checkout $(git tag -l | sort -Vr | head -n 1)
2018-04-15 16:48:52 +00:00
2018-12-11 15:31:48 +00:00
### Exporting
2021-01-09 17:03:25 +00:00
FediLove is a static site. When you run `yarn build` , static files will be
2019-06-22 18:32:17 +00:00
written to `__sapper__/export` .
2018-12-11 15:31:48 +00:00
2020-11-23 20:45:01 +00:00
In theory you could host these static files yourself (e.g. using nginx or Apache), but
2019-06-22 18:32:17 +00:00
it's not recommended, because:
2018-12-11 15:31:48 +00:00
2019-06-22 18:32:17 +00:00
- You'd have to set the [CSP ](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP ) headers yourself,
which are an important security feature.
- Some routes are dynamic and need to be routed to the correct static file.
2018-12-11 15:31:48 +00:00
2018-04-15 16:48:52 +00:00
## Developing and testing
2021-01-09 17:03:25 +00:00
See [CONTRIBUTING.md ](https://git.nogafam.es/nogafam/fedilove-ui/src/branch/master/CONTRIBUTING.md ) for
how to run FediLove in dev mode and run tests.
2018-12-19 04:50:30 +00:00