Coder Social home page Coder Social logo

redirect-demo's Introduction

Divert demo

Deploy the demo application in Okteto Staging by pressing the following button:

Develop on Okteto

Once the application is running, if you access the application endpoint (for example, client-api-cindy.staging.okteto.net) the content would be:

{
	"item": {
		"name": "LEDx",
		"type": "Medical Equipment",
		"weight": 0.23,
		"grid_size": "2x1",
		"loot_experience": 50
	},
	"flea": {}
}

Now, run okteto up:

 ✓  Images successfully pulled
 ✓  Files synchronized
    Name:      cindy-loot-data
    URL:       cindy-client-api-cindy.staging.okteto.net

Welcome to your development container. Happy coding!
cindy:cindy-loot-data app>

Compile the application:

cindy:cindy-loot-data app> make build
go build -o load-data cmd/loot-data/main.go

Run the application:

cindy:cindy-loot-data app> make start
./load-data
loot data server listening on :8081

Now you can access the original application at client-api-cindy.staging.okteto.net and the dev version of your application at cindy-client-api-cindy.staging.okteto.net:

{
	"item": {
		"name": "LEDx",
		"type": "Medical Equipment",
		"weight": 0.23,
		"grid_size": "2x1",
		"loot_experience": 50
	},
	"flea": {
		"rarity": "legendary",
		"average_price_24h": 710000.25,
		"average_price_7d": 805000.8
	}
}

Happy coding!

redirect-demo's People

Contributors

jmacelroy avatar pchico83 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

pchico83

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.