Crypto Exchange Marketplace is a web-based platform that provides secure user authentication, cryptocurrency wallet management, and real-time transaction tracking.
The application is built with ASP.NET Core for the backend and Vue.js with TypeScript for the frontend, ensuring a modern, scalable architecture.
- 🔐 Secure User Authentication: Users can sign up, log in, and log out securely using JWT.
- 📜 Protected Routes: Certain pages (e.g., Wallet) are restricted to authenticated users.
- 🌙 Dark Mode: Users can toggle between dark and light mode for an enhanced UI experience.
- ⚡ State Management with Pinia: Optimized frontend state management for scalability.
This project is currently a work in progress. The following features are planned for future development:
- 💰 Cryptocurrency Wallet Management: Allow users to store and manage crypto assets.
- 📈 Real-time Cryptocurrency Prices: Fetch and display live prices of various cryptocurrencies.
- 🔄 Transaction History: Enable users to view past transactions with full details.
- Backend: ASP.NET Core
- Frontend: Vue.js (Vite + TypeScript)
- State Management: Pinia
- Database: PostgreSQL (via Docker)
- Authentication: JWT (JSON Web Tokens)
- Testing: xUnit, Moq, Microsoft.AspNetCore.Mvc.Testing
Crypto-Exchange-Marketplace/
├── crypto/ # Backend - ASP.NET Core Web API
│ ├── Controllers/ # API endpoints (e.g., UserController.cs)
│ ├── Services/ # Business logic (e.g., UserService.cs)
│ ├── Repositories/ # Data access layer (e.g., UserRepository.cs)
│ ├── Models/ # Database models (e.g., User.cs)
│ ├── Dtos/ # Data Transfer Objects (e.g., NewUserDto.cs)
│ ├── Data/ # Database context (e.g., AppDbContext.cs)
│ ├── Docker/ # Docker configuration for PostgreSQL (docker-compose.yml)
│ ├── Startup/ # Start-up configurations for Program.cs file
│ ├── appsettings.json # Configuration file for DB connection, JWT, etc.
│ ├── Program.cs # Main entry point of the backend and application configuration
│
├── crypto-client/ # Frontend - Vue.js application
│ ├── src/ # Source code
│ │ ├── components/ # Vue components (e.g., Login.vue, Wallet.vue)
│ │ ├── router/ # Vue Router configuration (index.ts)
│ │ ├── stores/ # Pinia state management (Auth store)
│ │ ├── App.vue # Root Vue component
│ │ ├── main.ts # Main entry file for Vue app
│ │ ├── style.css # Global styles
│ ├── public/ # Static assets (e.g., index.html)
│ ├── package.json # Frontend dependencies and scripts
│ ├── vite.config.ts # Vite configuration for Vue.js
│
├── Tests/ # Unit and integration tests (backend)
│ ├── UnitTests/ # Tests for individual components (e.g., UserServiceTests.cs)
│ ├── IntegrationTests/ # End-to-end tests (e.g., UserControllerIntegrationTests.cs)
│
├── README.md # Project setup and documentation
└── .gitignore # Ignored files for GitBefore setting up the project, ensure you have the following installed:
- .NET 8.0 SDK - Required for running the backend.
- Node.js - Required for running the frontend.
- Docker & Docker Compose - Required for setting up the PostgreSQL database.
- Clone the repository
- Database setup:
- Ensure Docker is installed and running.
- Navigate to the
Dockerdirectory:
cd crypto/Docker- Ensure Docker Compose is installed
- Start the PostgreSQL container using Docker Compose:
docker-compose up
- Backend Setup:
- Navigate to the
cryptodirectory
cd crypto- Restore the .NET dependencies
dotnet restore
- Update the
appsettings.jsonfile with your database connection string - Apply the database migrations:
dotnet ef database update
- Run the backend
dotnet run
- Navigate to the
- Frontend Setup:
- Navigate to the
crypto-clientdirectory
cd ../crypto-client- Install the Node.js dependencies
npm install
- Run the frontend
npm run dev
- Navigate to the
Contributions are welcome! If you’d like to add features, fork the repo, create a new branch, and submit a pull request.