Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haixiangyan/a-cat-a-dog-ng
An Angular App for showing cats 🐱 and dogs 🐶
https://github.com/haixiangyan/a-cat-a-dog-ng
Last synced: about 2 months ago
JSON representation
An Angular App for showing cats 🐱 and dogs 🐶
- Host: GitHub
- URL: https://github.com/haixiangyan/a-cat-a-dog-ng
- Owner: haixiangyan
- Created: 2019-04-01T04:48:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T16:55:00.000Z (over 5 years ago)
- Last Synced: 2024-07-29T08:10:04.992Z (about 2 months ago)
- Language: TypeScript
- Homepage: https://haixiang6123.github.io/a-cat-a-dog-ng/home
- Size: 1.43 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# a-cat-a-dog-ng
An Angular App for showing cats 🐱 and dogs 🐶.
[Click here to view the demo](https://haixiang6123.github.io/a-cat-a-dog-ng/)
## Screenshot
![](https://i.loli.net/2019/04/03/5ca3a222acc5c.png)
## How to use
### Before running it
Before running it, you need to add a file `secret.ts` to
the directory `/src/app/http`. So, it would be `/src/app/http/secret.ts`.Then place following codes in it.
```typescript
export const catKey = 'APPLY THE KEY ON https://thecatapi.com/'
export const dogKey = 'APPLY THE KEY ON https://thedogapi.com/'
```For those 2 keys, you need to sign up in [thecatapi.com](https://thecatapi.com/) and [thedogapi.com](https://thedogapi.com/).
### Now run it
Now, enter following commands to run it :)
```bash
$ cd a-cat-a-dog-ng$ yarn install
$ ng serve
```## Stacks
* [Angular](https://angular.io/)
* [Angular Routing & Navigation](https://angular.io/guide/router)
* [Angular HttpClient](https://angular.io/guide/http)
* [Ant Design of Angular|NG-ZORRO](https://ng.ant.design/docs/introduce/en)
* [Axios](https://github.com/axios/axios)
* [Typescript](https://www.typescriptlang.org/)