Unverified Commit 33f58cdb authored by Marshall Han's avatar Marshall Han Committed by GitHub
Browse files

Merge branch 'dahlia:main' into main

parents 36fb8e96 2450f631
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ added in the future.[^1]
  -  [Hollo: a federated single-user microblogging
     software](https://github.com/dahlia/hollo)
  -  [Hono integration sample](./hono-sample/)
  -  [Fedify–Express integration example](./express/)

[^1]: Contributions are welcome!  If you have built an application with the
      Fedify framework and want to share it with others, please consider adding
+34 −25
Original line number Diff line number Diff line
# Fedify Express Integration Example
Fedify–Express integration example
==================================

This is a simple example of how to integrate Fedify into an Express.js application.
This is a simple example of how to integrate Fedify into an [Express]
application.

## Running the Example
[Express]: https://expressjs.com/


Running the example
-------------------

 1. Clone the repository:

   ```sh
    ~~~~ sh
    git clone https://github.com/dahlia/fedify.git
    cd fedify/examples/express
   ```
    ~~~~

 2. Install dependencies:

   ```sh
    ~~~~ sh
    # optional
    nvm use
    npm i
   ```
    ~~~~

 3. Start the server:

   ```sh
    ~~~~ sh
    npm start & npx @fedify/cli tunnel 8000
   ```
    ~~~~

4. Open your browser tunneled URL and start interacting with the app. You can see your handle such as `@demo@6c10b40c63d9e1ce7da55667ef0ef8b4.serveo.net`
 4. Open your browser tunneled URL and start interacting with the app.
    You can see your handle such as
    `@demo@6c10b40c63d9e1ce7da55667ef0ef8b4.serveo.net`.

5. Access https://activitypub.academy/ and search your handle and follow.
 5. Access <https://activitypub.academy/> and search your handle and follow.

 6. You can see following list like:
   ```

    ~~~~
    This account has the below 1 followers:
    https://activitypub.academy/users/beboes_bedoshs
   ```
    ~~~~