GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bilal68/onboardingtask

BranchesTags
Open more actions menu

Latest commit

 

History

71 Commits
71 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
middlewares
middlewares
 
 
routes
routes
 
 
screenshots
screenshots
 
 
services
services
 
 
src
src
 
 
utils
utils
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
app.js
app.js
 
 
bitbucket-pipelines.yml
bitbucket-pipelines.yml
 
 
bitcoin.csv
bitcoin.csv
 
 
bitcoin1.csv
bitcoin1.csv
 
 
deploy.sh
deploy.sh
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
sonar-project.properties
sonar-project.properties
 
 

Repository files navigation

Search4Ex


  • Original repository can be found at search4ex@bitbucket
  • Bitbucket Pipelines
  • Bitbucket Deployments
  • For Heroku App Logs Run in terminal: heroku logs -n 200 -a search4ex

Demonstration of Requirements understanding, proposing a solution and implementation by using the latest tools and techniques. The code is based on Google Android SDK.

What is this repository for?

  • This app is built as assignment for searchmetrics.
  • Adds different libs to enhance the application quality and performance.
  • Using SWAGGER.IO for documentation and as a working REST-API client
  • CI/CD Demonstration
  • Version 1.0.0

Problem Statement:

Problem Statement

Proposed Solution:

Proposed Solution

Deployment:

Deployment

Development Cycle:

  • Distributes the whole development into Issues
  • Go through the Bitbucket Issues Page

Application Flow

  • A: Open doc page in the browser
  • B: Check API's
  • C: User can set the CRON frequency from a given set of values
  • D: User can check the latest exchange rate of Bitcoin against US Dollar
  • J: It will update the rate into database after a set amount of time by using cron-job

How do I get set up?

How to set up

To set-up the project locally you need to clone this repo, from master or develop branch or some latest TAG

Configuration

Please sync and resolve dependencies by using

  • npm install

Set environment variables:

  • cp .env.example .env

Start App

  • npm run dev
  • You may access the app on http://localhost:3000

Build Docker Image

  • docker build -t search4ex .

Run Docker Image

  • Run docker run -d -p 5000:5000 search4ex
  • You may access the running docker app on http://localhost:5000/api-docs

Stop Docker Container

  • Run docker kill {container-id}

Pre-reqs

  • nodejs
  • npm
  • MongoDB
  • Docker
  • Bitbicket
  • Bitbicket-pipelines
  • Heroku

Requirements

  • See package.json
  • Express
  • Nodemon
  • MongoDB
  • JEST

Major Libraries and tools included:

  • Jest
  • Mongoose
  • MockgooseReactiveX/RxAndroid)
  • Winston
  • Supertest
  • joi
  • swagger-jsdoc
  • swagger-ui-express
  • node-cron

Storage

Local Storage

  • Environment Variable to hold the index of value for the cron-job frequency

Remote Storage

  • Using M-Lab for live storage

Auth

  • No auth is used for this version, thouhg we have a structure to implement along with swagger documentation

External Tools:

  • Pipelines: Bitbicket-pipelines
  • Build-Packaging: Docker
  • Deployment: Heroku
  • API Monitoring: assertible

Code Quality

  • Jest
  • Istanbol Coverage
  • SonarCloud

Distribution

The project can be distributed using a docker image or as git-repo.

Deployment

  • Access the App from https://search4ex.herokuapp.com/api-docs/
  • Access the code analysis report: SonarCloud
  • Heroku App Logs: Run heroku logs -n 200 -a search4ex

Limitation

  • M-Lab is a free service up to 500mb data volume.
  • Using Bitbucket Free resources for pipeline executions.
  • Using Heroku free tier, all the apps in free tiers as required to shut-down at least 6 hours a day.
  • I am using assertible to keep the app alive on Heroko.

Contribution guidelines

  • Forks are always appreciated

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.