質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.47%
Redux

Reduxは、JavaScriptアプリケーションの状態を管理するためのオープンソースライブラリです。ReactやAngularで一般的にユーザーインターフェイスの構築に利用されます。

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

React.js

Reactは、アプリケーションのインターフェースを構築するためのオープンソースJavaScriptライブラリです。

Q&A

0回答

1223閲覧

React/Reduxのデータベース

rina_teratail

総合スコア14

Redux

Reduxは、JavaScriptアプリケーションの状態を管理するためのオープンソースライブラリです。ReactやAngularで一般的にユーザーインターフェイスの構築に利用されます。

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

React.js

Reactは、アプリケーションのインターフェースを構築するためのオープンソースJavaScriptライブラリです。

0グッド

0クリップ

投稿2018/02/17 10:02

編集2018/02/17 10:05

現状

React/Reduxでアプリを作成して、reducersのオブジェクトも作りました。これでwebpack-local-serverで確認すると、うまくアプリが機能しています。

実現したいこと

ここから、データベースを作成して、それをアプリケーションと繋いでいくのだと思うのですが、そのやり方がイマイチわかっていません。。

Relational DatabaseのPostgreSQLを使いたいと思っています。

データ自体は別は他の人が用意してくれるのですが、アプリ側ではどういう処理をしたり、コードを書けばいいのでしょうか?データベースの作り方というよりも、いかにデータベースと繋ぐのかお伺いしたいです????

ダミーなのですが、reducerのオブジェクトの構造はこんな感じで作りました...!

export default function() { return [ { id: 1, title: 'test', category: 'london', tag: 'london', author: 'Mark', description: 'In the bazaar view, on the other hand, you assume that bugs are generally shallow phenomena—or, at least, that they turn shallow pretty quickly when exposed to a thousand eager co-developers pounding on every single new release. Accordingly you release often in order to get more corrections, and as a beneficial side effect you have less to lose if an occasional botch gets out the door.', officialLinks: { Reddit: '#', Website: '#', Email: '#', Twitter: '#' } }, { id: 2, title: 'test', category: 'kitty', tag: 'london', author: 'Ray', description: 'In the bazaar view, on the other hand, you assume that bugs are generally shallow phenomena—or, at least, that they turn shallow pretty quickly when exposed to a thousand eager co-developers pounding on every single new release. Accordingly you release often in order to get more corrections, and as a beneficial side effect you have less to lose if an occasional botch gets out the door.', officialLinks: { Reddit: '#', Website: '#', Email: '#', Twitter: '#' } }, { id: 3, title: 'test', category: 'auction', tag: 'london', author: 'Pikachu', description: 'In the bazaar view, on the other hand, you assume that bugs are generally shallow phenomena—or, at least, that they turn shallow pretty quickly when exposed to a thousand eager co-developers pounding on every single new release. Accordingly you release often in order to get more corrections, and as a beneficial side effect you have less to lose if an occasional botch gets out the door.', officialLinks: { Reddit: '#', Website: '#', Email: '#', Twitter: '#' } }, ...

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.47%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問