This is the frontend codebase for the New Order DAO's Dapp that can be found here: https://dao.neworder.network/.
All documentation about the DAO can be found on our gitbook page here: https://docs.neworder.network/new-order/
New Order welcomes contributors to our open-sourced DAO app.
Join New Order DAO's discord server to get more help from other contributors on our Engineering Workstream
channels. Join our discord server by clicking the invite link here: https://discord.gg/tyr6hyyJKC
Feel free to submit issues and enhancement requests here.
- You'll need Git, Node, and Yarn installed before starting.
- Please refer to the project's style and contribution guidelines for submitting patches and additions.
- In general, we follow the "fork-and-pull" Git workflow.
Steps 1-6 only need to be done once to get set up.
- Fork the repo on GitHub
- Clone the project onto your machine
- Create a
.env.local
file and ping a current dev for the contents $ git remote add upstream https://github.com/new-order-network/new-order-app-ui.git
- This adds a link to your parent repo so you can easily pull from it
$ nvm use
- This sets your Node to the right version
$ yarn install
- This tells yarn to install the necessary packages
$ yarn start
- This builds the project and watches for changes
- Now, at localhost:3000, you should see the site
- Any changes you make to the code should cause an auto-update as the files are being watched
$ git checkout -b <branch_name>
- This makes and checks out a local branch for you to develop on
- For naming, we prefer to format it this way:
[ISSUE-TAG]/[ISSUE-NUMBER]-[A-MEANINGFUL-TITLE]
- So for example, we have an issue called "Update README" with a tag of "feature" and issue number of 1, the ideal branch name could be:
feat/1-update-readme
- So for example, we have an issue called "Update README" with a tag of "feature" and issue number of 1, the ideal branch name could be:
- Name it descriptively in the format described above, e.g. "bug/fix-logo"
$ git push origin <branch_name>
- This creates a matching branch in your remote repository
- Make changes to the code as needed and
$ git add <blah>
any files you've modified $ git commit -m "<descriptive_comment>"
- This commits your changes to your local branch
- We also highly recommend the use of commitizen to automate the structure of your commits
$ git checkout main; git pull upstream dev; git checkout <branch_name>; git merge dev
- This series of commands will pull the latest changes from the parent repo, merge them into your forked repo's main branch, then rebase your new branch on top of those changes
- Repeat step 2 to push your changes to your remote branch
- Now, go to GitHub's UI and submit a pull request to merge your changes with the parent repo's
dev branch