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-examplefile and create your own.envfile:cp .env-example .env -
Update the
.envfile with your own settings.For example, to generate a
JWT_SECRET, you can use Node.js built-incryptomodule: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