Fantom finance is a new platform that simplifies trading, lending, and borrowing of synthetic assets. Access your wallet and start earning right away.
-
Clone repository from git.
Use the CLI to clone website.
# create a new folder and clone website git clone https://github.com/Fantom-foundation/fantom-finance.git
-
Start server loacally.
Navigate into your directory and start it up.
cd website/ npm install npm start
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!_Note: You'll also see a second link:
http://localhost:8000/___graphql
.
A quick look at the top-level files and directories you'll see in a Gatsby project.
.
βββ node_modules
βββ src
βββ static
βββ .gitignore
βββ .prettierrc
βββ gatsby-browser.js
βββ gatsby-config.js
βββ gatsby-node.js
βββ LICENSE
βββ package-lock.json
βββ package.json
βββ README.md
-
/node_modules
: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed. -
/src
: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template.src
is a convention for βsource codeβ. -
.gitignore
: This file tells git which files it should not track / not maintain a version history for. -
To edit content all the files avaliable in src component folder
-
To Deploy : Configure aws https://linuxhint.com/install_aws_cli_ubuntu/ follow this link install awscli and configure
aws configure AWS Access Key ID [****************ZX3Q]: XXXXXXXXXXX AWS Secret Access Key [****************67hz]: XXXXXXX Default region name [us-east-2]: us-east-2 Default output format [json]: json
-
Deploy to server:
npm run deploy:dev