Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

palantir/conjure-typescript-example

Repository files navigation

A small recipe frontend application that demonstrates the simple usage of conjure tooling.

Overview

Tools and Libraries

This example project uses the following tools and libraries, please consult their respective documentation for more information.

Project Structure

  • conjure-recipe-example-app - a react application project that uses conjure generated typescript bindings for talking to a server that implements the same Conjure API

    This is what the project looks like:

    └── src/    ├── components/    ├── recipesApp.tsx    ├── services/    │   └── index.ts    └── store/        ├── actions/        ├── createStore.ts        ├── index.ts        ├── reducers/        ├── state/        └── state.ts
    • src/recipesApp.tsx - the main component of this app
    • src/components - defines react components
    • src/services - usesconjure-typescript-runtime and the generatedconjure-recipe-example-api to define a remoteRecipeBookService
    • src/store - defines the redux store for this app
      • src/store/actions - defines actions that are exported to the react app
      • src/store/reducers - defines reducers that implement the behaviour of the actions on the state
      • src/store/state - defines the state type hierarchy

How to depend on a conjure API

gradle-conjure publishes conjure APIs to NPM (via thepublishTypeScript task), so you can depend on the APIlike any other package.

Make sure to also add a dependency onconjure-client in yourpackage.json:

   "dependencies": {     "@blueprintjs/core": "^3.0.1",+    "conjure-client": "^1.2.0",+    "conjure-recipe-example-api": "^0.2.0",     "react": "^16.4.1",     "react-dom": "^16.4.1",     "react-redux": "^5.0.7",

Development

Useful Yarn Commands:

  • yarn build to build and test the project
  • yarn start to run a development build and start serving the app
  • yarn lint --fix to fix any lint errors in the entire project

Generate New or Modify Existing APIs

Please followthis section inconjure-java-example's readme.

Create React App guide

This project was bootstrapped withCreate React App. Please refer to this guidehere for how to perform common tasks.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp