Dependencies
- Node.js
- Express
- Express-formidable
- Mongoose
- Cloudinary
- Stripe
- Crypto-js
- Uid2
- Cors
- Dotenv
Architecture
-
Route offer:
- create offer in mongoDB database
- get offer from mongoDB database with limit
- search offer in mongoDB database
-
Route user :
- signup : create crypted password and token, both are saved in mongoDB database
- login : decrypted password
-
Route pay :
- verify stripeToken
- stripe charges created
- save paiement in mongoDB database
Clone this repository :
git clone https://github.com/LilaGuill/leboncoin-backend.git
cd leboncoin-backend
Install packages :
npm install
When installation is complete, run the project with:
npx nodemon index.js
- React
- HTTP request with axios (get, post)
- Hooks (useState, useEffect)
- React Router Dom
- Handle Cookies
- React stripe elements
Demo: https://todolist-react.netlify.com
https://github.com/LilaGuill/leboncoin-frontend
- Client deployed with Netlify
- Server deployed with Heroku
- MongoDb database hosted on Mlab