# OTPGen - Multi-device & Cross-Platform 2-Factor Authentication TOTP Generator

A cross-platform (Web, Windows, macOS, iOS Android) application for generating 2-factor authentication codes (TOTP) used for MFA with various services.

## Directory Structure

`/2FA` - Project files for the 2FA application
- `/app` - Application screens
    - `/services` - Services to control application logic
- `/assets` - Application assets (fonts/images/videos/etc)
    - `/fonts` - Fonts used in the application
    - `/images` - Images used in the application
- `/util` - Application utilities and internal libraries

`/backend` - Project files for the 2FA backend server

## Installation

Execute `npm install` in `2FA`and `backend` directories.

### Example

*Assumes usage of a Bash shell!*

```sh
cd 2FA
npm install
cd ..

cd backend
npm install
cd ..
```

## Running

Execute `npm install` in `2FA`and `backend` directories.

### Example

*Assumes usage of a Bash shell! Two terminals are required, one for the app, and one for the backend.*

#### Shell 1

```sh
cd 2FA
npm run start
```

#### Shell 2

```sh
cd backend
npm run start
```