This is a Next.js project bootstrapped with create-next-app.
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:
- Next.js and React
- Tailwind CSS
- Algolia API (Geo search + Faceting + Filtering + Personalization + Analytics)
- Stripe API (Connect + Checkout)
- Firebase API (Firestore + Storage + Auth)
- Mapbox Geocoding API
- Vercel (for the live demo)
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.localDon't forget to apply security rules and indexes to your Firebase project:
firebase deploy --only firestore,storageInstall the dependencies and run the project:
npm install
npm run devstripe listen \
--forward-to=http://localhost:3000/api/webhooks \
--forward-connect-to=http://localhost:3000/api/webhooks/connect \
--events=checkout.session.completed,account.updatedClément Thiriet (cthiriet.developer@gmail.com)