https://github.com/gasparnd/100tifico
A Single Page Application with JavaScript Vanilla
https://github.com/gasparnd/100tifico
javascript-vanilla
Last synced: about 1 year ago
JSON representation
A Single Page Application with JavaScript Vanilla
- Host: GitHub
- URL: https://github.com/gasparnd/100tifico
- Owner: gasparnd
- License: mit
- Created: 2020-10-15T14:51:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-18T11:58:10.000Z (over 5 years ago)
- Last Synced: 2025-02-05T16:16:19.437Z (over 1 year ago)
- Topics: javascript-vanilla
- Language: JavaScript
- Homepage: https://gasparnd.github.io/100tifico/
- Size: 183 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 100tifico
100tifico is a JavaScript Vanilla Application shows Rick & Morty Characters Information. See the [DEMO](https://gasparnd.github.io/100tifico/ "DEMO")
## Installation
1. Clone this Repo
2. Go to project folder
3. Install dependencies `npm install`
4. Run local server `npm start`
## Deploy
His Deploy is in [Travis](https://travis-ci.org "Travis"). When you installed the project, you can use `npm run build` for compile to production
## API
Its used the [Rick & Morty Api](https://rickandmortyapi.com "Rick & Morty Api")
const API = 'https://rickandmortyapi.com/api/character/'
const getData = async (id) => {
const apiURL = id ? `${API}${id}` : API
try {
const response = await fetch(apiURL)
const data = await response.json()
return data
} catch (error) {
console.log('Fetch error', error)
}
}
export default getData
## License
The MIT License ([MIT](https://es.wikipedia.org/wiki/Licencia_MIT "MIT"))