Giter VIP home page Giter VIP logo

config_parser's Introduction

CONFIGURATION FILES PARSER

This application read different configuration files depending on the level of development.

The three (3) level of development used for the application are :

* Production
* Staging 
* Development

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

To get this application up and running, you need at minimum the following:

* JDK version 8 and above
* Git

Installing and Contribution.

* To get the project on your machine, you can clone by runing " git clone https://github.com/DavidOparanti/Config_Parser.git"  
* ...

The raw code is under SRC directory.

How to:

ConfigParser config = new ConfigParser();   // for production environment
ConfigParser config = new ConfigParser(“name_of_file”); for staging and developement enviroment

config object has a get method that accept string key as argument.
This return the value of key passed in as arguemnt.

Handling Error:

1 "Invalid key {key}" is returned if key does not exit in the config map object
2 "Invalid Environment. Do you mean staging or development or production?\n" +
                  "For production environment, call without passing any argument\n" +
                  "e.g {java Main}               for production environment\n" +
                  "    {java Main development}   for development environment\n" +
                  "    {java Main staging}       for staging environment"; "  
... is returned if Wrong environmet used doing program start up. 

Acknowledgments

    • All Decagon Java Stack Leads and associates.(For taking out time to putting us through.)
    • Decagon (for providing enabling environment to learn.)
    • My Stack colleagues.(These are amazing individual.)

config_parser's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.