Skip to content

LilaGuill/leboncoin-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leboncoin backend

Server

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

Running the project

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

Client

  • React
  • HTTP request with axios (get, post)
  • Hooks (useState, useEffect)
  • React Router Dom
  • Handle Cookies
  • React stripe elements

Overview

capture-1

Demo: https://todolist-react.netlify.com

Leboncoin Client

https://github.com/LilaGuill/leboncoin-frontend

Deployment

  • Client deployed with Netlify
  • Server deployed with Heroku
  • MongoDb database hosted on Mlab

Contact

My Linkedin Profil