This PoC was developed using NextJS - the React framework for the web! Its purpose is to allow users to exchange USD for PHP using a backend architecture that leverages Ethereum.
- Make sure Node is installed:
- https://nodejs.org/en/download
- Note: This repo was developed using the latest version: v21.6
- Clone this repo locally:
git clone https://github.com/kmeraz/parallax
- CD into the root of this repo
- Install the required packages using NPM
npm install
- Note: NPM should have been installed along with the Node installation
- It should be available as a global package in your local terminal
npm -v
->10.3.0
- It should be available as a global package in your local terminal
- Provide your own API key in
/src/app/api/index.ts
- Finally, run the local NextJS server
npm run dev
- Open http://localhost:3000 with your browser to see the result.
These are a few notes on subsequent improvements that could be made towards having a more mature product:
- Invalidate quote after 5 minutes
- Authentication (including logout functionality)
- Improved form validation including more responsive user feedback
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository.