Code Monkey home page Code Monkey logo

csc411's Introduction

How to Install the software

To install the software on local and production machine, follow the following steps:

  1. Download a zipped copy of this repository or clone via Github bash(or any configured git CLI) git clone github.com/tasiukwaplong/csc411.git
  2. Create a MySQL database and import the SQL file located in: src/Config/insurance.sql
  3. Create an account on paystack.com and copy the paystack secret key which can be found in your User dashboard and navigating to settings/API and Webhooks/
  4. Host the files either using a development server such as XAMPP, WAMP, LAMP or on a live server
  5. Go to src/Config/config.php and set the necessary config variables:
[
  'host' => 'LOCALHOST',// replace with database host
  'database' => 'DATABASE',// replace with database name
  'username' => 'USERNAME',// replace with database username
  'password' => 'PASSWORD', // replace with database password
  'paystack_private_key' => 'SK_KEY', // replace with paystack secret key
  'frontend_url' => 'https://frontend.com', // replace with frontend URL
  'backend_url' => 'https://backend.com' // replace with backend url
]

Also, remeber to set the environment you are using. it can be any of DEV or PROD. DEV implies you are in development mode, PROD implies production.

API Documentation

The documentation on how the API works can be found here: https://docs.google.com/document/d/178jgwj2XJtn6GLXqtpqjR0-KiTa8GnPLIVbwCxAlBeI/edit

System requirements/configurations

To run this on a local development machine, you need:

  1. PHP >= 7
  2. MySQL
  3. PostMan (Recommended) or any other HTTP API testing software
    These are mostly already set by default in most live servers

csc411's People

Contributors

tasiukwaplong avatar

Watchers

James Cloos avatar  avatar

Forkers

ezekielogboru

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.