Coder Social home page Coder Social logo

viraj-dhanushka / clocal-azure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leopardslab/clocal-azure

0.0 1.0 0.0 4.9 MB

๐Ÿ”ฌ Emulation engine for Azure

License: Apache License 2.0

Shell 0.27% JavaScript 75.11% CSS 1.74% HTML 18.27% Dockerfile 1.63% PowerShell 1.40% Batchfile 1.48% HCL 0.11%

clocal-azure's Introduction

An emulation engine for Azure Services

Clocal-azure provides an easy-to-use test/mocking framework for developing Cloud applications.

Currently features are under development.

๐Ÿš€ Install

Requirements

  • NodeJS (^8.9.4)
  • yarn (^1.6.0)
  • Docker
  • MYSQL
  • MongoDB
$ git clone https://github.com/cloudlibz/clocal-azure.git
$ cd clocal-azure
$ yarn
$ yarn link (Install clocal commands)
$ yarn start <command>
         or
$ clocal <command>

๐Ÿ“š Overview

Clocal-azure spins up the following core Cloud APIs on your local machine:

๐Ÿ“Ÿ Services & Ports

Commands

All Services at once

Step 1: Go to compose.env file and specify the path to create the images for azure functions and azure api app service and azure cosmosdb.

Step 2: Run the shell script as below.

Ubuntu OS: $ yarn service or $ bash compose.sh

Mac OS: $ yarn service or $ bash compose.sh or $ sh compose.sh

Compose-Result

Azure Functions

  • Init Functions
$ clocal function-init <folder>

Azure functions working directory is located in example/azure-functions. You can create a folder inside the location and give the folder location. Then attach the init file where the service starting file. Example: clocal function-init function-sample

  • Start Functions
$ clocal function-start
  • Stop Functions
$ clocal function-stop 

Azure Storage

Azure storage comprises of azure blobs, queues and tables. See the example/azure-storage for sample project.

  • Start Storage
$ clocal storage-start
  • Stop Storage
$ clocal storage-stop
  • Clear all files created
$ clocal storage-clear
  • List files To list all files
$ clocal storage-query

To list specific folder files

$ clocal storage-query folder_name

Azure CosmosDB (Only Windows Supported)

  • Init CosmosDB
$ clocal cosmosdb-init

This will create the in-built image of the Cosmos DB emulator and will be on ready state to start the container.

  • Start CosmosDB
$ clocal cosmosdb-start
  • Stop CosmosDB
$ clocal cosmosdb-stop

Azure SQL Server

  • Start SQL Service
$ clocal sql-start
  • Stop SQL Service
$ exit

Azure KeyVault

  • Start KeyVault
$ clocal keyvault-start
  • Stop KeyVault
$ clocal keyvault-stop

Azure Search

  • Start Search
$ clocal search-start
  • Stop Search
$ cmd + c / ctrl + c

Azure CLI 2.0

  • Start CLI
$ clocal cli-start
  • Exit CLI
$ exit

Azure API App Service

Azure API working directory is located in example/azure-api-service. You can create a folder inside the location and give the folder location. Then attach the init file where the service starting file.

Example: clocal api-start ./ api.json

$ clocal api-start <folder> <init-file>

๐Ÿ“ Example Documents

๐Ÿ“บ Demo Video Series

๐Ÿ”ง Testing

Before runs the tests, make sure all docker images have been installed.

$ yarn test

๐Ÿ“ Architecture

Sent by Gaurav Pandey

๐Ÿ™‹ Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

๐Ÿ“œ License

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

Acknowledgments

The project clocal-azure is initially developed for the Google Summer of Code 2018. Special thanks goes to my mentors Rumesh, Lasitha and Rajika and CloudLibz Organization.

Second phase of clocal-azure carried out for Google Summer of Code 2019. Once again I would like to thank my mentors Rumesh, Sammani, Rajika and Dilantha.

clocal-azure's People

Contributors

lakindu95 avatar rehrumesh avatar jmularski avatar rajikaimal avatar gitter-badger avatar xlight05 avatar lasitha-petthawadu avatar rajitha1998 avatar

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.