Skip to content

A sample web application to showcase the Open Gateway SIM Swap API functionality

License

Notifications You must be signed in to change notification settings

Telefonica/opengateway-samples-simswap-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIM Swap sample application's frontend

This is a convenience frontend for the SIM Swap sample application. It is a simple web application that allows you to interact with the SIM Swap sample application for testing and demoing purposes, although it is not the common use case to use the Open Gateway SIM Swap API from a frontend application.

Be sure to check the SIM Swap sample backend application for more information.

Requirements

This frontend application is built using React.js. You need to have Node.js installed in your system to install dependencies and run it, apart from Git to clone the repository as the first step:

Once you have Node.js installed and have cloned this repository, you can run the following command from the the root directory to install the dependencies:

npm install

Configuration

In order the make your sample app running connected to the SIM Swap sample backend application you need to edit App.js and change the BACKEND_URL constant to the URL where the backend application is running.

const BACKEND_URL = 'http://localhost:8000'

Default PORT value on the sample backend server is 8000. Be sure to update your server URL if you changed the default value on the backend application.

Running the application

React.js applications run on port 3000 by default. To run the application, execute the following command from the repository's root directory:

npm start

The application should open on your browser automatically. Even if it doesn't, it will be available at http://localhost:3000.

Application screenshot

About

A sample web application to showcase the Open Gateway SIM Swap API functionality

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published