Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

transposit/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%