Marketplace is a Node.js application for managing online transactions between users. This application demonstrates a basic use case of managing users and orders.
This project uses Swagger UI for API documentation. You can view the interactive documentation and try out the API endpoints at http://localhost:3001/api-docs/ after running the server (WIP).
-
Clone the repository:
git clone https://github.com/sxcamacho/marketplace.git
-
Navigate into the project directory:
cd marketplace
-
Install the dependencies using yarn:
yarn install
-
Copy the
.env-example
file and create your own.env
file:cp .env-example .env
-
Update the
.env
file with your own settings.For example, to generate a
JWT_SECRET
, you can use Node.js built-incrypto
module:require('crypto').randomBytes(64).toString('hex')
-
Start the MySQL server and create a database for the project.
After the installation, you can run the project using:
yarn start