Skip to content

cthiriet/localz

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Algolia Coding Contest 2021 (Second category)

This project was entirely created for Algolia Coding Contest 2021.

The website is called Localz. It's a P2P marketplace where everyone can sell and buy products posted by others.

Note: This project is configured to run french businesses. As a result, Stripe connected accounts will be created with country: 'FR' params and Mapbox Geocoding API will only show FR addresses. Moreover the main currency is EUR. For convenience and for the internationality of this competition, English is used as the main language.

This project was made with:

Local setup

If you intent to run the project locally, copy .env.example as .env.local and fill the variables with your own credentials:

cp .env.example .env.local

Don't forget to apply security rules and indexes to your Firebase project:

firebase deploy --only firestore,storage

Install the dependencies and run the project:

npm install
npm run dev

Test Stripe Webhooks locally

stripe listen \
  --forward-to=http://localhost:3000/api/webhooks \
  --forward-connect-to=http://localhost:3000/api/webhooks/connect \
  --events=checkout.session.completed,account.updated

Author

Clément Thiriet (cthiriet.developer@gmail.com)

About

P2P Marketplace. Winning Project Algolia Coding Contest 2021.

Topics

Resources

License

Stars

Watchers

Forks

Languages