This is the frontend for ASSERT – a blockchain-based prediction platform. The project is built using React with Vite, Tailwind CSS, and DaisyUI, and communicates with a Node.js backend via REST API.
├── public/ # Static files
├── dist/ # Production build output
├── node_modules/ # Installed dependencies
├── src/
│ ├── api/ # API request handlers
│ ├── assets/ # Images and static media
│ ├── components/ # Reusable UI components
│ ├── Context/ # React Context for global state
│ ├── Layout/ # Layout wrappers like sidebar, headers
│ ├── Page/ # Page views (e.g., Landing, Dashboard)
│ ├── redux/ # Redux store and slices
│ ├── Services/ # Axios services for external API calls
│ ├── utils/ # Helper functions
│ ├── App.css # Global styles
│ ├── App.jsx # Main App component
│ ├── main.jsx # Entry point
│ └── routes.jsx # Route definitions
├── .env # Environment variables
├── .gitignore
├── eslint.config.js
├── index.html
├── package.json
├── package-lock.json
├── tailwind.config.js
├── vite.config.js
└── README.md
- React 18 + Vite setup for fast development
- TailwindCSS + DaisyUI for responsive and modern UI
- Axios-based API integration with backend
- Redux for global state management
- Framer Motion for smooth animations
- Dynamic routing via React Router
- Custom layout structure (header/sidebar)
- Token-based voting and prediction flow
git clone https://github.com/YOUR_USERNAME/assert-frontend.git
cd assert-frontendnpm installCreate a .env file in the root with:
VITE_API_BASE_URL=https://your-server-url.com
Refer to the backend repo here: ASSERT Backend
npm run devnpm run dev– Start the local development servernpm run build– Build for productionnpm run preview– Preview the production build locally
- React 18
- Vite
- Tailwind CSS
- DaisyUI
- Redux Toolkit
- Axios
- React Router DOM
- Framer Motion
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature-name - Commit your changes:
git commit -m 'Add new feature' - Push to the branch:
git push origin feature/your-feature-name - Open a pull request
This project is licensed under the MIT License.
Developed as part of the ASSERT Capstone Project at the University of Wollongong by Team ASSERT.