Mini-project to view and purchase RealToken YAM offers by ID.
- Node.js >= 20.18.0
- yarn >= 1.22.22
-
Clone the project
-
Install dependencies
yarn install- Configure the environment variables
Create a .env file at the root of the project
- Start the development server
yarn dev- Open in the browser
http://localhost:3000/?id=YOUR_OFFER_ID
realtoken-offer-viewer/
├── pages/
│ └── index.tsx # Main page
├── styles/
│ └── globals.css # Global styles
├── public/ # Static assets
├── .env.example # Environment variables template
├── next.config.js # Next.js configuration
├── tsconfig.json # TypeScript configuration
├── tailwind.config.js # Tailwind CSS configuration
├── postcss.config.js # PostCSS configuration
├── package.json # Dependencies
└── README.md # This file
- Enter an offer ID in the search bar
- Click on "Search" or press Enter
- The offer details are displayed
- Click on "Buy this offer"
- Enter the desired quantity
- Confirm the transaction
- Never commit the
.envfile - The
COMMUNITY_API_KEYmust never be exposed to the client - Only variables with
NEXT_PUBLIC_are accessible to the client
# Build
docker build -t realtoken-offer-viewer .
# Run
docker run -p 3000:3000 realtoken-offer-viewer