This demo app demonstrates the following use cases:
- Login
- Sign up
- Logout
- Forgot password flow
- Session management & Calling APIs
Use npm
to install the project dependencies:
npm install
This compiles and serves the React app and starts the backend API server on port 3001.
npm run dev
The app will start on http://localhost:3000
If you would like to modify the website (http://localhost:3000) or the API server (http://localhost:3001) URL:
- Change the
apiPort
orapiDomain
values inapi-server.js
- Change the
apiPort
orapiUrl
values insrc/App.js
- Change the
websitePort
orwebsiteDomain
values inapi-server.js
- Change the
websitePort
orwebsiteUrl
values insrc/App.js
- The frontend code is located in the
src
folder. - The backend API is in the
api-server.js
file.
npm run build && npm run start
Created with ❤️ by the folks at supertokens.com.
This project is licensed under the Apache 2.0 license.