-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add repost functionality #509
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
Open
luciorubeens
wants to merge
12
commits into
allinbits:main
Choose a base branch
from
luciorubeens:feat/repost
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
72ead31
feat: add repost message handler
luciorubeens 0818301
refactor: handle repost on api
luciorubeens c143fc8
refactor: remove postToDiscord
luciorubeens d936d2e
Merge remote-tracking branch 'origin/main' into feat/repost
luciorubeens 63edb9c
feat: repost action button
luciorubeens f974d88
refactor: fetch posts with reposts
luciorubeens 6cad26d
refactor: show reposts on profile page
luciorubeens a29c594
feat: add contributing
luciorubeens 762af36
refactor: polish
luciorubeens 6f33b40
fix: lint
luciorubeens 18651e3
fix: lint
luciorubeens 75a69a2
test(e2e): upgrade keplr version
luciorubeens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| # Contributing to Dither.chat | ||
|
|
||
| This guide will help you set up a local development environment for Dither.chat. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - Go 1.21+ | ||
| - Node.js 20+ | ||
| - Bun | ||
|
|
||
| ## Setting Up a Local Network | ||
|
|
||
| You can run a local instance of the AtomOne blockchain to test Dither.chat. | ||
|
|
||
| ### 1. Clone and Build AtomOne | ||
|
|
||
| ```bash | ||
| git clone https://github.com/atomone-hub/atomone | ||
| cd atomone | ||
| make build | ||
| ``` | ||
|
|
||
| ### 2. Start the Local Network | ||
|
|
||
| ```bash | ||
| make localnet-start | ||
| ``` | ||
|
|
||
| ### 3. Copy the Mnemonics | ||
|
|
||
| Look at the logs output and find the mnemonic phrases for the test accounts. Copy them for later use. | ||
|
|
||
| ### 4. Enable CORS | ||
|
|
||
| Stop the running process, then run the following command to enable CORS for local development: | ||
|
|
||
| ```bash | ||
| ./build/atomoned --home ~/.atomone-localnet config set app api.enabled-unsafe-cors true | ||
| ``` | ||
|
|
||
| ### 5. Restart the Local Network | ||
|
|
||
| ```bash | ||
| make localnet-restart | ||
| ``` | ||
|
|
||
| ### 6. Configure the Network Spammer (Optional) | ||
|
|
||
| If you want to generate test data, configure the network spammer tool: | ||
|
|
||
| ```bash | ||
| cd packages/tool-network-spammer | ||
| ``` | ||
|
|
||
| Create a `.env` file with the following content: | ||
|
|
||
| ```env | ||
| MNEMONIC="your mnemonic phrase here" | ||
| RPC_ENDPOINT="http://localhost:26657" | ||
| INTERVAL_MS=10000 | ||
| ``` | ||
|
|
||
| Replace `your mnemonic phrase here` with one of the mnemonics from step 3. | ||
|
|
||
| ## Running the Application | ||
|
|
||
| Start the services in the following order (each in a new terminal): | ||
|
|
||
| ### 1. Start the API | ||
|
|
||
| ```bash | ||
| docker run -d --name dither-postgres -p 5432:5432 -v dither_postgres_data:/var/lib/postgresql/data -e POSTGRES_USER=default -e POSTGRES_PASSWORD=password -e POSTGRES_DB=postgres postgres:16 | ||
| cd packages/api-main | ||
| bun start | ||
| ``` | ||
|
|
||
| ### 2. Start the Reader | ||
|
|
||
| ```bash | ||
| cd packages/reader-main | ||
| API_URLS=http://localhost:1317 bun start | ||
| ``` | ||
|
|
||
| The reader will start indexing blockchain data and populating the database. | ||
|
|
||
| ### 3. Start the Spammer (Optional) | ||
|
|
||
| To generate test data: | ||
|
|
||
| ```bash | ||
| cd packages/tool-network-spammer | ||
| bun start | ||
| ``` | ||
|
|
||
| ### 4. Start the Frontend | ||
|
|
||
| ```bash | ||
| cd packages/frontend-main | ||
| VITE_SKIP_CSP=true VITE_ENVIRONMENT_TYPE=localnet bun dev | ||
| ``` | ||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be much simple using Tilt, it greatly simplifies running the frontend app and the services. Any reason not to mention it instead of the single steps to run the app?