Dependencies
- Node.js
- Express
- Express-formidable
- Mongoose
- Crypto-js
- Uid2
- Cors
- Dotenv
Architecture
-
Route marvel:
- search comics : axios request to Marvel API
- get characters : axios request to Marvel API
- get comics by id : axios request to Marvel API
- marvel API : https://developer.marvel.com/
-
Route user :
- signup : create crypted password and token, both are saved in mongoDB database
- login : decrypted password
Clone this repository :
git clone https://github.com/LilaGuill/marvel-backend
cd marvel-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, useContext)
- React Router Dom
- Handle Cookies
Demo: https://marvel-lg.netlify.com/
https://github.com/LilaGuill/marvel-frontend.git
- Client deployed with Netlify
- Server deployed with Heroku
- MongoDb database hosted on Mlab