現状
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: '#' } }, ...
あなたの回答
tips
プレビュー