Skip to content

moeen-basra/react-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Lumen Calculator App

The calculator app build using the React, Lumen, Photon, Docker

Prerequisites

Make sure you have installed the docker and docker-compose before using this application you can find the guide here

Please follow the guide to install the app

*clone the project from git

git clone https://github.com/moeen-basra/react-calculator
  1. go to api folder and create env file, copy content from .env.example and update

  2. got app edit .env and update the ip for app

  3. go to project root directory and run the command

docker-compose -f docker-compose.prod.yml build
  1. run the containers
docker-compose -f docker-compose.prod.yml up -d
  1. open your favorite brower and paste the follwoing url
http://{hostip}:8087
  1. for api use the following url
http://{hostip}:8088

# API to calcualte
POST: http://{hostip}:8088/calculate
params: {
    operand1: required,
    operand2: required,
    operator: required // +,-,/,*,%,√,3√,xy,x!
}

# API for reports
# note: please use the encodeURI for operators

GET: http://moeen.me:8088/reports
params: {
    interval: required // daily, weekly, monthly
    operator: required // +,-,/,*,%,√,3√,xy,x!
    page: optional
}
  1. for jenkins
http://{hostip}:8089
  1. reterive the jenkins key from logs and paste. Next continue with recommended plugins and ccreate a user. Verify your url thats it.

you are ready to create pipe lines for build and deployments.

Please check the demo

  1. App
  2. API
  3. Jenkins

There is alot of space for the imporvements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published