Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miolab/nuxt_axios

Repository for implementing API asynchronous communication in Nuxt.js.
https://github.com/miolab/nuxt_axios

axios nuxtjs

Last synced: about 2 months ago
JSON representation

Repository for implementing API asynchronous communication in Nuxt.js.

Awesome Lists containing this project

README

        

# Nuxt.js (Axios)

`Nuxt.js`のお試しで、__API非同期通信__ を実装します。

- 実行環境・バージョン

```bash
create-nuxt-app v2.15.0
```

```bash
$ node --version
v12.16.1
```

- [Axios](https://github.com/axios/axios)

- [JSONPlaceholder](https://jsonplaceholder.typicode.com/)

- プロトタイプREST APIとして、[`/users`](https://jsonplaceholder.typicode.com/users)を使用。

## 実装コード

- [`pages/index.vue`](https://github.com/miolab/nuxt_axios/blob/master/pages/index.vue)

## 結果表示

get_api_result

- [localhost:3000](localhost:3000)

---

## Build Setup

```bash
# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev
```

For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).