"2FA Generator" is a simple web application that allows users to generate 2FA (Two-Factor Authentication) codes from their 2FA secret key, similar to the functionality provided by 2fa.live.
git clone https://github.com/ardynatz/2fa-generator.git
cd 2fa-generator
npm install
npm run dev
The development server will start, and you can access the application at http://localhost:5173
.
npm run build
docker build -t 2fa-generator .
docker run -d -p 80:80 -p 443:443 2fa-generator
Now the production version of the application is available at http://localhost
and https://localhost
.
For deployment to a hosting platform (e.g., AWS ECS, Azure Container Instances, Google Cloud Run, Heroku), the general steps are:
- Push the Docker image to a container registry.
- Configure the hosting platform to pull the Docker image and run the container.
- Set the appropriate environment variables for the production environment.
Refer to the hosting platform's documentation for specific deployment instructions.
I hope this guide helps you get your "2FA Generator" application up and running in production! If you have any further questions or need assistance, don't hesitate to reach out. :)