This project is the front-end of fxhash. The front-end uses Nextjs, a React framework. If you want to contribute, being familiar with React might be required. However, Nextjs is pretty easy to pick-up knowing React ! Just get familiar with the basic concepts in their doc and you're good to go.
git clone https://github.com/fxhash/fxhash-website
Go to the project directory
npm install
# or
yarn install
The front-end is set up to run against the main fxhash API and the contracts on the mainnet so BE CAREFUL. If you buy a token using this front-end running on your local machine using your wallet, it will be as if you ran the same operation on the official website.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can find opened issues on the https://github.com/fxhash/fxhash-website/issues tab. If you want to implement a feature, please check first if an issue is opened and see what needs to be implemented in that regard. If no issue is opened, feel free to implement your feature as you wish.
- fork the dev branch of this repo
- create a branch to implement a feature or fix a bug
- when done, push the branch to your git repository fork
- create a pull request againts the dev branch
- the team will review it, and either request changes or merge it
If you find a bug with the front end, you can create an issue.
feature/_
: add a featurechange/_
: a change on a particular featurebug/_
: fix a bug
- nextjs / react
- typescript
- css modules (with sass)
- taquito to interact with the blockchain
- ApolloClient to run graphQL queries (both durring SSR and on the client-side), and handle the store (client-side)
/articles
[deprecated]: markdown files, generated in html at build time, they populate theabout
tab of the website/components
: reusable components used multiple times in the app/containers
: bigger building block components. They often use multiple components and have some more complex logic/context
: react context/doc
: the articles from the doc - website doc is derived from this folder/hooks
: react hooks/pages
: the different pages of the website (see nextjs doc)/queries
: graphQL queries (not all of them are in there, to be done)/services
: modules to interact with external services/styles
: the generic styles of the app/types
: type definitions/utils
: general-purpose utility functions