This project is a template for implementing a local SuperTokens API with Managed SuperTokens database and Twilio for user verification.
- Using SuperTokens for authentication
- Swagger at
http://localhost:3000/api-docwith OpenAPI 3.0 - Using FontAwesome for icons
- Using Resend for email address verification
- Using Twilio for phone number verification with SMS
- TODO: Using a Postgres database with Docker
- TODO: Using tRPC on some routes
To get started with this project, follow these steps:
- Clone the repository:
git clone https://github.com/MartinKondor/supertokens-template.git - Install the dependencies:
npm install - Configure the environment variables in a
.env.localfile, see .env.local.example - Start the server:
npm run dev - Open
http://localhost:3000/authorhttp://localhost:3000/api-docfor Swagger UI.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.