Git Product home page Git Product logo

gizumo_wiki_lesson's Introduction

Gizumo Wiki

フォルダ構成

.
├── package-lock.json
├── package.json
├── public
├── src
│   ├── js
│   │   ├── _helpers/
│   │   ├── _router/
│   │   ├── _store/
│   │   ├── app.js
│   │   ├── components/
│   │   │   ├── atoms/
│   │   │   │   ├── ...
│   │   │   │   └── Button.vue
│   │   │   ├── globals/
│   │   │   │   ├── ...
│   │   │   │   └── Header.vue
│   │   │   └── molecules/
│   │   │       ├── ...
│   │   │       └── ListSidebar.vue
│   │   └── pages/
│   │       ├── ...
│   │       └── index.vue
│   └── scss/
└── webpack.config.babel.js

「JS」フォルダの中

  • 「_helpers」はユーティリティな関数などをまとめているフォルダ
  • 「_router」はvue-routerのインスタンスを生成しているフォルダ
  • 「_store」はvuexのstoreのインスタンスを生成しているフォルダ

コンポーネント管理

componentsフォルダでコンポーネントをまとめています。

  • 「atoms」は使い回すための最小単位のコンポーネント
  • 「globals」はどのページでも使うコンポーネント
  • 「molecules」は「atoms」で構成されたコンポーネント(使い回せなくてもいい)

pagesフォルダはmoleculesのコンポーネントで構成された実ページ

  • 「pages」では直接「atoms」を使わない
  • 「pages」では子のコンポーネントにpropsを渡すこと・イベントの通知を受け取ることとJSの処理を行っている

画面

URL
トップ /
サインイン /signin
サインアウト /signout
カテゴリー一覧・追加 /categories
記事一覧 /articles
記事詳細 /articles/:id
更新 /articles/:id/edit
投稿 /articles/post
ユーザー一覧 /users
ユーザー個別 /users/:id
ユーザー作成 /users/create
404 /*

サインアップ・サインイン

  • 管理者が追加(アカウント名・メールアドレス・パスワード)

権限グループ

グループ 権限範囲
システム管理者 閲覧(全ページ)、更新・削除
管理ユーザー 閲覧(全ページ)、更新・削除
閲覧ユーザー 閲覧(更新系のページを除く)

開発

開発時は下記のコマンドでサーバーが立ち上がります。

npm install
npm run dev

本番公開

公開は、下記のコマンドでソースコードをビルドします。

npm run build

環境にアップしたら、下記のコマンドでNodeのサーバーを立ち上げます。

npm run publish

技術的なもの

gizumo_wiki_lesson's People

Contributors

keisuke3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.