A friendly, beginner-friendly full-stack crypto exchange project built with React, TypeScript, Node.js, and MongoDB. It simulates a real trading dashboard experience with authentication, wallet flows, real-time market updates, and a demo trading environment.
This project is designed to help new developers understand how a real-world web app is structured across the frontend, backend, database, and API layers.
Crypto Exchange is not just a UI mockup — it connects several moving pieces together:
- A React frontend for the user experience
- An Express API for backend logic
- MongoDB for storing user and wallet information
- Coinbase market data for live crypto pricing
- WebSockets / simulated updates for real-time dashboards
If you are new to full-stack development, this repository is a great place to see how everything fits together.
- Sign up and sign in
- Explore cryptocurrency price information and charts
- Use a virtual wallet with a demo starting balance
- Make simulated buy/sell transactions
- View transaction history
- Learn how frontend requests connect to backend routes
This project is a learning/demo application. It is not a real trading platform and should not be used for real funds or financial decisions. The wallet is virtual and the market data is for demonstration.
- Frontend: React, TypeScript, CSS
- Routing: React Router
- Backend: Node.js, Express
- Real-time communication: Socket.IO
- Database: MongoDB + Mongoose
- Market data: Coinbase API
- Charts: ApexCharts
git clone https://github.com/Sohum-Nikam/Crypto.git
cd CryptoInstall the frontend dependencies:
npm installInstall the backend dependencies:
cd server
npm install
cd ..Copy the example environment files and update them with your own settings:
cp .env.example .env
cp server/.env.example server/.envThen update the values inside the files:
REACT_APP_API_URLfor the frontend API URLMONGODB_URIfor your MongoDB databaseJWT_SECRETfor secure token generationCOINBASE_API_KEYandCOINBASE_SECRET_KEYfor market data integration- SMTP settings if you want email-based password resets
From the root folder:
npm run devThis runs the frontend and backend together.
If you want to run them separately:
npm startcd server
node server.jsCrypto/
├── public/ # Static assets and browser entry files
├── src/ # Frontend React source code
│ ├── components/ # Reusable UI elements
│ ├── contexts/ # Shared app context/state
│ ├── hooks/ # Custom React hooks
│ ├── layouts/ # Shared page layouts
│ ├── navigation/ # Route setup and navigation
│ ├── screens/ # Main pages like dashboard, market, wallet
│ ├── services/ # Frontend API calls and data services
│ ├── styles/ # Global styling
│ ├── utils/ # Helper functions and guards
│ ├── App.tsx # App root component
│ ├── index.tsx # React entry point
│ └── react-app-env.d.ts # CRA TypeScript support file
├── server/ # Backend API code
│ ├── server.js # Main Express server and routes
│ ├── package.json # Backend dependencies
│ └── .env.example # Example backend env file
├── services/ # Shared backend helper services
│ └── coinbaseMarketService.js
├── docs/ # Project documentation and guides
│ ├── project-structure.md
│ └── setup.md
├── .env.example # Frontend env template
├── .gitignore # Ignore generated files and secrets
├── package.json # Frontend scripts and dependencies
├── README.md # Main project documentation
└── tsconfig.json # TypeScript config
If you are new to this project, here is the easiest way to understand it:
src/= what users see on the websiteserver/= the API that handles login, wallet actions, and market requestsservices/= helper logic for things like Coinbase market datapublic/= static front-end assets.envfiles = secret settings such as API keys and database URLs
A good way to learn the project is:
- Start with
src/App.tsx - Look at
src/navigation/ - Open a screen in
src/screens/ - Follow that screen to its API service in
src/services/ - Then trace the request to the backend in
server/server.js
That flow will help you understand how the app works end-to-end.
The app supports sign-up, sign-in, password reset, and user profile requests using JWT-based authentication.
The app retrieves live crypto pricing through Coinbase endpoints and also includes fallback values for demo/offline scenarios.
Users get a virtual starting balance, and their wallet updates after buy/sell actions.
The project uses WebSockets and Socket.IO patterns to mimic live updates seen in modern trading interfaces.
- Start by understanding one page at a time.
- Keep your environment variables private.
- Avoid committing
.envfiles. - When a feature is not working, trace it from the frontend service to the backend route.
- Use README and docs files as a map before making large code changes.
Contributions are welcome. If you want to help improve the project:
- fix a bug
- improve the UI/UX
- refactor the structure
- add documentation
- improve the backend logic
Please keep changes clean, readable, and beginner-friendly.
This repository is created for learning, presentation, and portfolio-style development. It is not a production-ready financial system and should not be used for real account management, real trading, or financial decisions.
This project is open for learning and experimentation. If you plan to reuse or extend it, please keep the original credit and respect the repository's code and documentation.