/random-phone-number-generator

Application for generating 10 digits unique phone numbers

Primary LanguageJavaScriptMIT LicenseMIT

Random Phone Number Generator

Build Status Coverage Status codecov

Features

  • Generate 10 digits phone numbers
  • Download phone numbers as JSON, text and CSV

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

This applications runs on Windows, MacOS and Linux operating systems. You need to have the following installed to run this application.

  • Nodejs >8.x.x

Installation

# Clone this repository in your terminal
git clone https://github.com/emmabaye/events-manager.git my-project

# Change directory
cd my-project

# Populate environment variables
npm install

Rename sample.env file with to .env and populate it with appropriate environment variable values, then proceed to the next step

# Start application in development mode
npm run start-dev

# If you want to build for production
npm run build-server && npm run build-client

# then start application in production mode
npm run start

Running the tests and coverage

 # Run server-side tests
 npm run test

 # Run client-side tests
 npm run test-client

 # Run client-side tests in watch mode
 npm run test-client-watch

Coding style tests

This application uses ESLint to lint ES6 code.

#Lint code
npm run lint

Deployment

The scripts in package.json are setup for ease of deployment on Heroku or any nodejs hosting provider. Follow this tutorial if you need help, https://devcenter.heroku.com/articles/deploying-nodejs

Built With

Contributing

Feel free to contribute to this repository. Your pull requests are welcomed

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Thanks to everyone that assisted me in building this application.