Empowering Enterprises with Blockchain Knowledge
Polkadot Education is a mobile-first responsive web app designed to provide comprehensive blockchain and Web3 education tailored for enterprises and institutions. Our goal is to guide users from the basics to advanced knowledge of Polkadot through an engaging and practical learning journey.
This repository contains the front-end application for Polkadot Education. Follow the instructions below to set up and run the project locally.
First, clone this repository to your local machine:
git clone https://github.com/PolkadotEducation/app.git
cd app
Install the required dependencies using Bun:
bun install
To start the development server, run:
bun dev
After starting the server, open http://localhost:3000 in your browser to view the application.
Note: If you prefer a more comprehensive setup, the local-setup repository automates the process. It provides all necessary configurations and runs all required Docker containers. Simply follow the documentation in the repository, and you’ll have the backend, database, and other services up and running seamlessly.
The project has the following commands:
bun run build-storybook
: Builds the storybookbun run build
: Builds the projectbun run db:reset
: Drops database and runs the seedbun run db:drop:all
: Drops the databasebun run db:drop:courses
: Drops just the coursesbun run db:seed:all
: Runs the whole seedbun run db:seed:courses
: Runs the seed for courses onlybun run format
: Runs Prettierbun run format:fix
: Fixes Prettier errorsbun run lint
: Runs ESLintbun run lint:fix
: Fixes ESLint errorsbun run storybook
: Runs the storybookbun run test
: Runs Cypress testsbun run test:open
: Runs Cypress tests in Launchpad modebun run type-check
: Runs TypeScript checkbun run wait
: Waits for the API to start
The project structure is organized as follows:
.github/
and.storybook/
: Configuration files and workflows for continuous integration and Storybook.api/
: Modules related to backend API communication.app/
: Main application components.components/
: Reusable UI components.context/
: React context implementation for state management.hooks/
: Custom React hooks.lib/
: Helper functions and libraries.public/assets/
: Public files such as images and other assets.stories/
: Storybook files.types/
: TypeScript type definitions.
We welcome contributions to the Polkadot Education project! If you have suggestions, improvements, or bug fixes, please submit a pull request or open an issue in the appropriate repository:
For any questions or support, please contact us at [email protected].
© Polkadot Education