I use this repo and its different versions to practice new stuff I'm learning.
This project is based on a coding challenge accessible here.
Data is stored in MongoDB
Atlas and served through an API REST
built using Express.js
and Node.js
, and deployed to Heroku. Images hosted here.
Client was built with React
using Hooks
, React Bootstrap
components and some Sass
, and also deployed to Heroku.
Access the app in the link below!👇
cd client; npm install; cd ../server; npm install;
Paste the following in the .env
file:
PORT=5000
DB_NAME=phoneCave
DB_HOST=mongodb://localhost
DOMAIN=http://localhost:3000
In different terminals:
cd server; npm run dev;
cd client; npm start;
Verb | Endpoint | Result |
---|---|---|
GET | "/" | Home page |
GET | "/teléfonos" | Phones list |
GET | "/teléfonos/:id" | Phone details |
Verb | Endpoint | Result |
---|---|---|
GET | "/api/phones" | All phones json |
GET | "/api/phones/:id" | Selected phone json fetched by Id |
👤 Jaime Fernández-Castaño
- Github: @jaimeferncast
- LinkedIn: @jaimeferncast
This README was generated with ❤️ by readme-md-generator