All Projects → hypermkt → nippo

hypermkt / nippo

Licence: other
本アプリケーションはYAPC::Hokkaido 2016の「Vue.jsによるWebアプリケーション開発」用に実装したサンプルアプリケーションです。

Programming Languages

PHP
23972 projects - #3 most used programming language
Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to nippo

Vue Admin Template
a vue2.0 minimal admin template
Stars: ✭ 15,411 (+90552.94%)
Mutual labels:  axios, vue-router
vue2.0-SellPosSystem
vue2.0实战项目——简单的快餐店系统
Stars: ✭ 35 (+105.88%)
Mutual labels:  axios, vue-router
Vue Blog
🎉 基于vue全家桶 + element-ui 构建的一个后台管理集成解决方案
Stars: ✭ 208 (+1123.53%)
Mutual labels:  axios, vue-router
wwvue-cli
vue-cli升级版脚手架,应有尽有的开箱即用方法及配置,没有花里胡哨的晦涩难懂的操作,上手成本极低,现已新增simple(极简模式)、vue3和iview-template,是个很不错的垫脚石,来不及解释了赶紧上车😊😘
Stars: ✭ 15 (-11.76%)
Mutual labels:  axios, vue-router
Vue Cnode
🔥Vue.js打造一个开源的CNode社区。CNode by Vue.js
Stars: ✭ 249 (+1364.71%)
Mutual labels:  axios, vue-router
Vue Electron
vue-blog client,base on vue-electron,axios, vuex, vue-router.
Stars: ✭ 193 (+1035.29%)
Mutual labels:  axios, vue-router
Vue Fallowfish
🐠vue全家桶仿闲鱼部分布局以及功能实现
Stars: ✭ 211 (+1141.18%)
Mutual labels:  axios, vue-router
Vue Shop
VUE移动小商城
Stars: ✭ 148 (+770.59%)
Mutual labels:  axios, vue-router
kugou
multiple implementations for kugou music
Stars: ✭ 25 (+47.06%)
Mutual labels:  axios, vue-router
Vue Axios Github
Vue 全家桶 + axios 前端实现登录拦截、登出、拦截器等功能
Stars: ✭ 2,622 (+15323.53%)
Mutual labels:  axios, vue-router
Vue Cnode
🚀 基于vue3 function-based 构建cnode社区
Stars: ✭ 192 (+1029.41%)
Mutual labels:  axios, vue-router
Vue Video
vue + vue-router + vuex + (fetch->axios)
Stars: ✭ 251 (+1376.47%)
Mutual labels:  axios, vue-router
Vuesocial
something like QQ、weibo、weChat(vue+express+socket.io仿微博、微信的聊天社交平台)
Stars: ✭ 189 (+1011.76%)
Mutual labels:  axios, vue-router
Vue Mall Mobile
🔥 vue + koa + mongodb 搭建 mobile web 商城 (End。。。)
Stars: ✭ 201 (+1082.35%)
Mutual labels:  axios, vue-router
Symfony Vuejs
Source code of the tutorial "Building a single-page application with Symfony 4 and Vue.js"
Stars: ✭ 170 (+900%)
Mutual labels:  axios, vue-router
Venture Management
一个包含vuejs和nodejs技术的全栈项目
Stars: ✭ 208 (+1123.53%)
Mutual labels:  axios, vue-router
Vue Cli Multi Page
基于vue-cli模板的多页面多路由项目,一个PC端页面入口,一个移动端页面入口,且有各自的路由, vue+webpack+vue-router+vuex+mock+axios
Stars: ✭ 145 (+752.94%)
Mutual labels:  axios, vue-router
Laravue
Admin dashboard for enterprise Laravel applications built by VueJS and Element UI https://laravue.dev
Stars: ✭ 1,964 (+11452.94%)
Mutual labels:  axios, vue-router
Filmsys
一个使用Vue全家桶和后台Express框架结合Mysql数据库搭建起来的移动端电影售票和管理系统,实现了热映、即将上映、电影和影院全局搜索、评论、选座、购票、点赞、收藏、订单等一系列购票和管理流程功能
Stars: ✭ 217 (+1176.47%)
Mutual labels:  axios, vue-router
Bga issue blog
Flutter 或 Vue 全家桶(Vue + VueRouter + Vuex + Axios)抓取 GitHub 上的 Issues,结合 GitHub Pages 搭建个人博客站点,支持 GitHub 登录和评论
Stars: ✭ 249 (+1364.71%)
Mutual labels:  axios, vue-router

Nippo wercker status

概要

必要条件

  • PHP 7.0.13以上
    • Lumen 5.3で必要
  • MySQLがローカル環境にインストール済みとし、root/パスワード無しでアクセス可能とする
  • NodeJS v6.9.1

準備

DBのマイグレーション

APIで利用するDBのマイグレーションを実行します。詳しくはmigrationsディレクトリをご確認ください。

# DBマイグレーションに必要なライブラリをダウンロードします
$ cd api
$ composer install

# DBマイグレーションを実行します
# 事前にcreate database nippo;でnipppoデータベースを作成してください。
$ vendor/bin/phpmig migrate
$ cd ..

npmパッケージをインストール

各種フロントエンドパッケージをインストールします

$ npm install

使い方

Nippoをローカル起動

  • 下記コマンド実行後にブラウザで http://127.0.0.1:8080/#/ が立ち上がり閲覧できるようになります。
  • 内部でhttpサーバー、API、ビルドを同時に実行します。
$ npm start

以下はAPIドキュメントです

APIドキュメント

Routing

GET /api/nippoes

リクエストパラメーター

無し

レスポンス
[
  {
    "id": 5,
    "content": "hoge",
    "created_at": "2016-11-12 06:45:56",
    "updated_at": "2016-11-12 06:45:56"
  },
  {
    "id": 6,
    "content": "hoge",
    "created_at": "2016-11-12 07:00:52",
    "updated_at": "2016-11-12 07:00:52"
  }
]

GET /api/nippoes/:id

リクエストパラメーター
  • id: 日報ID
レスポンス
{
  "id": 5,
  "content": "hoge",
  "created_at": "2016-11-12 06:45:56",
  "updated_at": "2016-11-12 06:45:56"
}

POST /api/nippoes

リクエストパラメーター
  • content: 日報本文
レスポンス
{
  "content": "hoge",
  "updated_at": "2016-11-12 07:08:29",
  "created_at": "2016-11-12 07:08:29",
  "id": 7
}

PUT /api/nippoes/:id

リクエストパラメーター
  • id: 日報ID
レスポンス
{
  "id": 7,
  "content": "fuga",
  "created_at": "2016-11-12 07:08:29",
  "updated_at": "2016-11-12 07:09:54"
}

DELETE /api/nippoes/:id

リクエストパラメーター
  • id: 日報ID
レスポンス

確認用curl

手元でAPIの挙動を確認したい際にご利用ください。

$ curl -v http://localhost:8000/api/nippoes | jq .
$ curl -v http://localhost:8000/api/nippoes/1 | jq .
$ curl -v -X -H "Accept: application/json" -H "Content-type: application/json" -X POST -d ' {"content": "hoge"}' http://localhost:8000/api/nippoes | jq .
$ curl -v -X -H "Accept: application/json" -H "Content-type: application/json" -X PUT -d ' {"content": "fuga"}' http://localhost:8000/api/nippoes/1
$ curl -v -X -H "Accept: application/json" -H "Content-type: application/json" -X DELETE http://localhost:8000/api/nippoes/1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].