This project is a full-stack NFT Marketplace application, consisting of a backend API and a frontend application. The backend is built with Node.js, Express.js, and MySQL, while the frontend is developed using Vue.js and Vuetify.
The NFT Marketplace application allows users to browse, filter, sort, and manage NFTs. It includes features such as pagination, sorting, and filtering to enhance the user experience.
- Node.js (version 16.x or later)
- MySQL (version 5.7 or later)
- Git
-
Clone the Repository
git clone https://github.com/mustafakh994/nft-marketplace.git cd nft-marketplace/backend
-
Install Dependencies
npm install
-
Create a MySQL Database
Create a new database in MySQL for the project. You can use a MySQL client or command line:
CREATE DATABASE nft_marketplace;
-
Configure Environment Variables
Create a
.env
file in thebackend
directory and add your database configuration:DB_HOST=localhost DB_USER=root DB_PASSWORD=yourpassword DB_NAME=nft_marketplace
-
Start the Server
Use Nodemon for development to automatically restart the server on changes:
npm run dev
Or use Node.js directly:
node index.js
-
Access the API
The API will be available at
http://localhost:5000/api/v1
.
-
Run the Seeder Script
To populate the database with sample NFT data, run the seeder script:
npm run seed:nfts
- Node.js (version 14.x or later)
- Yarn (version 1.x or later)
- Git
-
Navigate to the Frontend Directory
cd ../frontend
-
Install Dependencies
yarn install
-
Start the Development Server
yarn serve
-
Access the Application
Open your browser and navigate to
http://localhost:8080
to view the application.
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.