git clone https://github.com/swapnil233/marketplace.gitnpm installto get all the dependencies- Get an instance of Postgres running and create a database, name it whatever (eg "marketplace").
- If you want to use Supabase to host the DB instead of your machine, make a DB in Supabase, then go into settings and get the regular connection string and the connection string with PgBouncer. This needs to be done for connection pooling, because if you deploy to a serverless env like Vercel or AWS Amplify, every function invocation may result in a new connection to the database. The connection strings will look like this:
DIRECT_URL="postgres://postgres:[YOUR-PASSWORD]@db.[YOUR-PROJECT-REF].supabase.co:5432/postgres"DATABASE_URL="postgres://postgres:[YOUR-PASSWORD]@db.[YOUR-PROJECT-REF].supabase.co:6543/postgres?pgbouncer=true"
- Create a
.envfile, and populate it with the data that's required, which is found in.env.example - Run
npx prisma generateandnpx prisma db pushto upload the schema into your DB and generate the TypeScript types for the schema models - Seed your database with categories and tags by running
npm run seed - Run
npm run devto start the nextjs project on port 3003 (you can change this inpackage.jsonunder thedevscript)
- Map view
- Search by query or query + category
- Location based results
- Pagination
- Dark mode
- Recommendations algorithm, utilizing something like the Term Frequency-Inverse Document Frequency (TF-IDF) technique with a vector DB + cosine similarity.




