Skip to content

mooreds/create-react-app-transposit-typescript

 
 

Repository files navigation

react-scripts-transposit-typescript

Create React apps with Transposit and Typescript with no build configuration.

Bootstrap a typescript react app with login for Transposit (using the Transposit SDK) setup out of the box.

tl;dr

npm install -g create-react-app

create-react-app my-app --scripts-version=@transposit/react-scripts-typescript --service="myOrg/testService" --transposit-url="https://api.transposit.com"
cd my-app/
npm start

You can use yarn instead of npm if you prefer.

details

If you're already familiar with create-react-app, this should be familiar to you with the exception of the --service and --transposit-url CLI args. Start by creating and deploying a service on Transposit, and use the services maintainer, name, and transposit base url in these CLI args, which are needed to initialize the Transposit SDK.

Your application will contain a simple login page (/login), route to handle the redirect after a successful login (/handle-login), and a route for your app's content (/). You may need to go back to Transposit and edit the "Successful Login URI" in the deploy configuration to use the /handle-login path.

About

Create React apps using typescript with no build configuration.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.2%
  • Shell 1.2%
  • Other 0.6%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy