Giter Site home page Giter Site logo

gnostr-org / gnostr-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from randymcmillan/nostr-proxy

3.0 0.0 0.0 40.75 MB

gnostr-proxy: save you WS connections

Home Page: https://proxy.gnostr.org

License: MIT License

JavaScript 5.96% TypeScript 66.12% CSS 1.38% Makefile 16.25% Dockerfile 0.75% Shell 2.84% HTML 6.70%
gnostr nodejs nostr

gnostr-proxy's Introduction

Nostr Proxy

Push and get events to your Proxy, get results from multiple Nostr relays

Installation

In the project directory, run:

pnpm install

Edit your env variables. You can use a .env file by copying the file .env.example in the root directory, or you can set your variables into your hosting provider UI.
For APP_KEY, you can use the following command to generate one node ace generate:key

PORT=3333
HOST=0.0.0.0
NODE_ENV=development
APP_KEY=unique-key
DRIVE_DISK=local
SESSION_DRIVER=cookie
CACHE_VIEWS=false
PROXY_URL=wss://your-proxy.com
RELAYS=wss://relay1.com,wss://relay2.com,wss://relay.com

Launch

Development

npm run dev to start the app in dev mode.
Open http://localhost:3333 to view it in the browser.
Use ws://localhost:3333 into your Nostr client.

Production

npm run build
cd build
pnpm install --prod
node server.js

Running tests

TODO

Known issues

  • None?

Learn More

To learn Fastify, check out the Fastify documentation.

===

"act in act" like "docker in docker"

  1. Install act CI

    $curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash

  2. Install make

    $brew install make or $apt install make

  3. clone repo

    $git clone https://github.com/RandyMcMillan/nuke-docker.git

    $cd nuke-docker

  4. $make

  1. $make push
nuke-docker.mov

act example

act -v   -W .github/workflows/push.yml
act -vr  -W .github/workflows/push.yml
act -vrb -W .github/workflows/push.yml

=======

License

This project is MIT licensed.

gnostr-proxy's People

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.