GithubHelp home page GithubHelp logo

isabella232 / node-doc-kube Goto Github PK

View Code? Open in Web Editor NEW

This project forked from postmanlabs/node-doc-kube

0.0 0.0 0.0 10.37 MB

๐Ÿฑ URL shortener using cat verbs, cat adjectives, and cat emojis

Home Page: https://cat-ui-79b109c1ee.kubesail.io/

Dockerfile 1.79% Shell 13.58% HTML 6.88% JavaScript 54.78% CSS 22.98%

node-doc-kube's Introduction

This project was originally published in Deploying a scalable web application with Docker and Kubernetes from the Postman Engineering blog.

Pre-requisites for local development

  1. Download and install Node.js and a package manager like npm, and
  2. A container platform like Docker. Remember to start Docker on your machine.

For Development

npm install // install dependencies
npm start // start app on 3000
npm run start-server // start server on 5500

For Production

  1. Environment variables: Create a new file called .env located in the root of your project directory. Add your production domain and docker hub username. See the example in .env.example.
  2. API tests: If you plan to run Postman tests, then update the bin/deploy.sh file by selecting a method of running your Postman tests. To run either of the last 2 options, update your Postman collection UID and environment UID in bin/deploy.sh and also add your Postman API key to the .env file you created in the previous step.
  3. Describe deployment: Update the deployment-prod.yaml file to describe your backend deployment. Update the deployment-ui-prod.yaml file to describe your frontend deployment. These files will include your container image, resource allocation, the desired number of replicas, and other important information.
  4. Deploy: Run the deployment script

npm run deploy // run API tests, then deploy frontend and backend to production

For the deployment, I used a hosted Kubernetes provider called Kubesail that creates a free managed namespace. However, the underlying deployment utility npx deploy-to-kube supports any Kubernetes cluster. By running it inside your app's directory, this utility will automatically generate a Dockerfile (if it doesn't exist), build and push deployment images, generate Kubernetes configuration files (if it doesn't exist), and trigger a deployment on your Kubernetes cluster.

catURL website

node-doc-kube's People

Contributors

loopdelicious avatar pastudan 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.