This is a React based app designed to generate unique 10 digit phone numbers
- A user can generate new phone numbers
- A user can sort phone numbers in ascending and descending order
- A user can can get maximum and minimum phone numbers
This application was developed purely with JavaScript using React Architecture, NodeJs, and Express.
- Clone the project from repository https://github.com/efalayi/rpn-generator
- In your terminal, change directory to the cloned folder and run
yarn install
. This installs all the app's dependencies. - Create a
.env
file using the sample specified in .env.sample - To start the app in production mode, set your
NODE_ENV
toproduction
and runyarn start
- To start the app in development mode, set your
NODE_ENV
todevelopment
and runyarn start:dev
- Point your browser to
localhost
, using the port defined in your.env file
. - Alternatively, you can access the app on rpn-generator.herokuapp.com/
Server modules were tested using Mocha while client modules were tested using Jest, React-Test-Renderer and Enzyme.
To make development easier, some NPM scripts were written:
yarn test:client
runs tests for client modules using Jestyarn test:server
runs test for server modules using Mochayarn start:dev
runs app on local machine
MIT © 2018 | Esther Falayi | Andela, Nigeria