Welcome to the unirep social taiwan project. Leveraging the power of Unirep, our mission is to create a platform where community members can engage in discussions with 100% anonymity. We believe in fostering a space where individuals can express their thoughts and ideas securely, without the fear of their identities being revealed.
Join us in our journey towards a more anonymous and secure online community space!
git clone [email protected]:social-tw/social-tw-website.git
cd social-tw-website
yarn install
yarn build
yarn contracts hardhat node
cp packages/relay/.env.example packages/relay/.env
Then fill in your Twitter API Key in packages/relay/.env
in new terminal window, from root:
yarn contracts deploy
yarn relay start
in new terminal window, from root:
yarn frontend start
It will be running at: http://localhost:3000/
yarn circuits test
yarn contracts test
yarn frontend test
yarn relay test
Ensure that your code follows the established style guidelines and is correctly formatted using Prettier:
View the suggested code formatting without making changes:
yarn lint
Automatically format your code to match Prettier's style:
yarn lint:fix
4.3 Verify Code Formatting Ensure that your code is formatted correctly:
yarn lint:check
docker build -t test-frontend:0.1 -f packages/frontend/Dockerfile .
docker run --rm -p 3000:3000 --network="bridge" test-frontend:0.1
docker build -t test-relay:0.1 -f packages/relay/Dockerfile .
docker run --network="host" --rm -p 8000:8000 test-relay:0.1
Before diving into the codebase:
-
Read the CONTRIBUTING.md: Please ensure you've reviewed our CONTRIBUTING.md. It contains crucial information on our coding standards, the pull request process, and more.
-
Search Existing Issues: We use the GitHub issue tracker to manage our tasks and bugs. Please spend a few minutes searching for issues to see if someone else has already reported the same problem or suggested the same change. For existing issues, we’ve already assigned story points based on their complexity and the estimated time required to complete them. These story points are essential for the following:
- Prize: Story points indicate the reward you will receive once the issue is completed and merged by our core team.
- Time Estimate: Story points also give an estimate of the time required to complete the issue.
To claim an issue, simply comment on the issue thread to let the core team know you’d like to work on it. Please ensure you can complete the issue within the designated timeframe. If you are unable to meet the deadline, we may reassign the issue to other contributors to keep the progress on track.
- Reporting New Issues: If you don't find an existing issue that addresses your concern, feel free to open a new one. Provide as much detail as possible to help us understand the context and importance. When creating a new issue, please follow these guidelines:
- Provide a Descriptive Title: Make sure the title clearly describes the issue or feature request.
- Include Detailed Information: Provide a clear description of the problem or feature, the steps to reproduce it (if applicable), and any additional context (such as error messages or logs).
- Proposed Solution (if applicable): If you have a potential solution or an idea on how to resolve the issue, feel free to include that in the description.
The core team will review your issue description, and we will assign appropriate story points. These points reflect the estimated time required to resolve the issue, as well as the reward you’ll receive once the task is completed, reviewed, and merged.
- Fork the Repository: If you're not a direct contributor, start by forking the main repository.
- Create a New Branch: Branches should be named descriptively. For example: add-login-feature or fix-image-upload-bug.
- Implement Your Changes: Make sure your changes adhere to our coding standards and don't introduce new issues.
- Submit a Pull Request (PR): Once you're satisfied with your changes, push your branch to your fork and submit a pull request. Our team will review it, suggest changes if necessary, and merge it when it's ready.
Please follow the following branch naming scheme when creating your branch:
feature-foo-bar
for new featuresfix-foo-bar
for bug fixestest-foo-bar
when the change concerns only the test suiterefactor-foo-bar
when refactoring code without any behavior change
- Engage with the Team: Don’t hesitate to ask questions in the issue discussions or PR comments if you need clarification. Collaboration is key to ensuring high-quality contributions.
- Be Respectful and Professional: While working together, please maintain a respectful and professional tone in all communications. It’s important to create a positive and supportive environment for all contributors.
- Join the conversation and help the community.