Git Product home page Git Product logo

gamma's Introduction

Gamma

ASP.NET Web API example with MySQL database connection and simple html client for API consume

Database Connection

For testing purposes there is already a MySQL available at 89.36.210.40:3316 with username root, password root and database name 'gamma' (you can connect to it with any client)

Or you can run your own with docker (for example): docker run --name temp-mysql -e MYSQL_ROOT_PASSWORD=root -p 3316:3306 -d mysql:5.6 (or any other tag) Then edit the credentials in appsettings.json file in visualstudio (and rebuild).

ASP.NET Api

For testing purposes there is already a container running at 89.36.210.40:8085 (it's currently connected to 89.36.210.40:3316 mysql).

Or you can run the project from visualstudio and test it locally (http://localhost:5000) Remember to change the api url at the beginning of the html client file

Api Methods

api/user (get: list of all users from the 'user' table) api/user/{guid} (get: the user corresponding to the guid parameter)

Try

Just curl the API: curl http://89.36.210.40:8085/api/user or use the html client provided

Additional docker info

To build your custom image run the following command in the root of the project: docker build --no-cache -t yourusername/gamma:latest .

To push it in your registry (docker hub in this example): docker push yourusername/gamma:latest

To run it in your environment: docker run -d -p 8085:80 --name gamma yourusername/gamma:latest

gamma's People

Contributors

kianda avatar

Watchers

 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.