Skip to content

TusharW4ni/CometMarketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CometMarketplace

A marketplace for all Comets to buy and sell items. Only UTD student and faculty can use this platform. It allows for a better experience than what is curretly offered by the UTD app.

Codebase Setup

Prerequisites

[Note: for Windows users, I would recommend getting WSL. TLDR: WSL allows you to run any linux distribution alongside Windows. This is useful for getting a more predictable and consistent experience]

Git

Node.js

NPM

  • This should be included with the Nodejs installation

Docker Desktop

Steps

First-Time Steps

  1. Clone the repository
  2. Open a terminal and navigate to the root directory of the project
  3. Run docker compose up, if that doesn't work sudo docker-compose up
  4. Open another terminal and navigate to the backend folder
  5. Run npm install
  6. Run npx prisma migrate reset
  7. Run npm run dev
  8. Open another terminal and navigate to the frontend folder
  9. Run npm install
  10. Run npm run dev
  11. Now you can access the website at http://localhost:5173 in your browser [Note: Auth only works when the website is on localhost:5173. If you have multiple instances on npm run dev running, Vite will automatically change the localhost number to :5174, :5175, and so on.]
  12. To look at the database
    1. Open another terminal and navigate to the backend folder
    2. Run npx prisma studio
    3. Now you can see the database in your browser at http://localhost:5555
  13. To stop the project
    1. Ctrl+C in the terminal where you ran npm run dev in the backend folder
    2. Ctrl+C in the terminal where you ran npm run dev in the frontend folder
    3. Ctrl+C in the terminal where you ran docker compose up in the root directory
    4. Run docker compose down or sudo docker-compose down in the root directory

Subsequent-Time Steps

  1. Open the folder in a terminal that was downloaded when you cloned the repository
  2. Run docker compose up, if that doesn't work sudo docker-compose up
  3. Open another terminal and navigate to the backend folder
  4. Run npm run dev
  5. Open another terminal and navigate to the frontend folder
  6. Run npm run dev
  7. Now you can access the website at http://localhost:5173 in your browser [Note: Auth only works when the website is on localhost:5173. If you have multiple instances on npm run dev running, Vite will automatically change the localhost number to :5174, :5175, and so on.]
  8. To look at the database
    1. Open another terminal and navigate to the backend folder
    2. Run npx prisma studio
    3. Now you can see the database in your browser at http://localhost:5555
  9. To stop the project
    1. Ctrl+C in the terminal where you ran npm run dev in the backend folder
    2. Ctrl+C in the terminal where you ran npm run dev in the frontend folder
    3. Ctrl+C in the terminal where you ran docker compose up in the root directory
    4. Run docker compose down or sudo docker-compose down in the root directory

Project Structure

.
├── backend
│   ├── apis
│   ├── prisma
│   └── uploads
├── frontend
│   ├── public
│   ├── src
│   │   ├── assets
│   │   │   └── icons
│   │   ├── components
│   │   └── pages
└── notes
    └── frontend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages