TradeSpace is an online platform that aims to provide a convenient and user-friendly way for individuals to sell their used products. The platform will serve as a marketplace where sellers can list their items and connect with potential buyers who are interested in purchasing pre-owned goods.
Check out our mock UI here
Check out our API Documentation here
-
For backend
-
Go to
backenddirectory and install dependencies bycd backend yarn install -
Now start the server by
yarn startIf the above command doesn't work or creates any issue whatsoever, you can run the following command
yarn devNow the backend server will be available at
localhost:3000 -
To start the initial migration of the database, run the following commands
yarn prisma generateyarn prisma migrate dev --name init --create-onlyThis will create the database and the required tables in the database. You dont have to run this command again unless you delete the entire database. After any changes in the database schema, you can run the following command to update the database After creating a table:
yarn prisma migrate deploy -
Download the latest
stripe-clifrom here. Then login usingstripe loginand provide the required credentials. Then run the following command to start the webhook listener
stripe listen --forward-to <your_local_backend_server_url>/api/webhooksnow add the stripe webhook signing secret to the
STRIPE_WEBHOOK_SECRETin.envfile in the backend directory
-
-
For frontend
-
Go to
frontenddirectory and install dependencies bycd frontend yarn add @mui/material @emotion/react @emotion/styled -
Now start the server by
yarn startNow the frontend server will be available at
localhost:3000
-