In Mongo Compass:
- Query: { name: "Babelgum" }
class APIHandler { | |
constructor (baseUrl) { | |
this.BASE_URL = baseUrl; | |
this.APIRequest = axios.create({ | |
baseURL: `${this.BASE_URL}/characters`, | |
}); | |
} | |
getFullList () { | |
return this.APIRequest |
.gitignore
para NodeJS (ejemplo aquí).git init
)git remote add origin <url-del-repo-github>
)develop
(el proyecto tendrá 2 ramas principales: main
y develop
)// src/components/AddNewFood.js | |
import React, { Component } from 'react'; | |
class AddNewFood extends Component { | |
state = { | |
name: "", | |
calories: "", | |
image: "" | |
} |
// src/App.css | |
.App { | |
text-align: center; | |
} | |
#action-buttons button { | |
margin: 0 20px; | |
} |
// src/App.js | |
import React from 'react'; | |
import { Switch, Route } from 'react-router-dom'; | |
import './App.css'; | |
import countriesFromJSON from './countries.json'; | |
import CountriesList from './components/CountriesList'; | |
import CountryDetail from './components/CountryDetail'; |
This is the message you should have received from Heroku in your mailbox some weeks/days ago:
[Shutdown Notice]: mLab MongoDB add-on Dear Heroku customer,
We have identified you as the owner of, or collaborator on, the following apps that have the mLab MongoDB add-on installed:
...list of projects...