Code Monkey home page Code Monkey logo

mesic-frontend's Introduction

MesiCuu

食事店のマッチング

Hotpepper API を利用し、飲食店のデータベースを利用可能。 プロダクトの案に関しては、以下の URL から。

https://www.canva.com/design/DAFRIcSH_oc/cihwRPE6rZOtG97P4AVh-A/view?utm_content=DAFRIcSH_oc&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton

フロントエンドの環境構築

  1. クローンしたこのルートディレクトリで、以下を実行。
$ yarn install
  1. 環境構築が完了したら、以下を実行してサーバーを起動。
$ yarn dev
  1. 以下の URL で確認する。

http://localhost:3000

技術選定

  • Frontend
    • Next.js
    • TypeScript
    • Vercel
    • Hotpepper API
    • Material UI
    • emotion CSS
    • Framer motion
    • Three.js
    • WebGL
  • Backend
    • NestJS
    • TypeScript
  • Recommend Engine
    • Flask
    • Python

フロントエンド

ディレクトリ設計

src
├── components # コンポーネント
│   ├── Atoms # 最小単位
│   ├── Molecules # Organismsを複数組み合わせたもの
│   ├── Organisms # Atomsを複数組み合わせたもの
│   ├── Page
│   └── Templates # 情報の入っていない箱。Moleculesを複数組み合わせる。
├── constants # 定数やタイプなどを定義
│   ├── Consts
│   └── Types
├── pages
├── repositories # データのやり取り
├── servises # データ整形
├── styles # グローバルデザイン
└── utils

外部 API との接続

外部 API との連携に関しては、pagesディレクトリ配下にあるapiディレクトリで行う。

例として、Hotpepper API での検索クエリは以下。

export default async function handler(
  req: NextApiRequest,
  res: NextApiResponse
) {
  const params = new URLSearchParams(HOTPEPPER_SEACH_CONFIG.params);
  const response = await fetch(`${HOTPEPPER_SEACH_QUERY}?${params}`);
  const shops = await response.json();

  res.status(200).json({ shops });
}

mesic-frontend's People

Contributors

kp047i avatar ryo-ebata avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

mesic-frontend's Issues

PWA化

優先度は低いけど、マッチングアプリだしスマホではPWAでアプリのようなUIを実現したい。

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.