-
Install all dependencies:
npm install
-
Configure environment variables:
- Copy
.env.exampleto.env - Update the values as needed
- Copy
-
Start the application:
npm start
That's it! Your store will be running at:
- Frontend: http://localhost:8080
- Backend API: http://localhost:3001
The npm start command runs both frontend and backend simultaneously using concurrently:
- β Starts Express backend server on port 3001
- β Starts Vite development server on port 8080
- β Color-coded console output (blue for server, green for client)
- β Both processes run in parallel
- Modern React 18 with TypeScript
- Wallet connection (MetaMask)
- Staking interface
- Token exchange/swap
- Shopping cart
- Authentication with wallet signatures
- Responsive design with Tailwind CSS
- Beautiful UI with shadcn/ui
- Express REST API
- JWT authentication
- Wallet signature verification
- User management
- NFT operations
- Auction system
- Modular architecture
# Run both frontend and backend
npm start
# Run frontend only
npm run dev
# Run backend only
npm run server
# Build for production
npm run build
# Run linter
npm run lintβββ src/ # Frontend
β βββ pages/ # Routes (Home, Staking, Exchange)
β βββ components/ # UI components
β βββ layout/ # Layout wrappers
β βββ abi/ # Smart contract ABIs
β βββ hooks/ # React hooks (wallet, auth, cart)
β βββ token/ # Token configurations
β βββ services/ # API client
β
βββ server/ # Backend
β βββ modules/ # Feature modules
β βββ routes/ # API routes
β βββ helper/ # Utilities
β βββ server.js # Entry point
β
βββ public/ # Static assets
- Deploy Smart Contracts - Update contract addresses in
.env - Add Database - Replace in-memory storage with MongoDB/PostgreSQL
- Configure Blockchain - Set your preferred network (mainnet/testnet)
- Customize - Add your branding and products
- Deploy - Deploy to your hosting service
If port 3001 or 8080 is already in use, update the ports in:
.env(PORT=3001)vite.config.ts(port: 8080)
Make sure you have MetaMask installed in your browser.
Try deleting node_modules and package-lock.json, then run npm install again.
For issues or questions, check the README_PROJECT.md file for detailed documentation.