$ npm install -g create-react-app 
$ create-react-app my-app
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 1- We will follow Okteto CLI normal installation from their documentation | |
| 2- Create a file and call it k8s.yaml (follow documentation if you need a more specific use case) | |
| 3- if you have secrets you need to use locally this command below | |
| ```kubectl get secret <secret name> --output=yaml``` | |
| 4- Then use the Okteto command to get your namespace for your application | |
| ```okteto context list``` | |
| 5- The secret YAML has a namespace called default (or any name), you have to change it with what okteto command gave you in step 4 | |
| 6- Add the secret YAML in the k8s file normally after "---" | |
| 7- Remove any ingress step in your YAML and only keep the service | |
| 8- Use the below command to deploy | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function compressWord(word, k) { | |
| let count = 1 | |
| let tempWord = '' | |
| for(let i = 0; i < word.length; i++){ | |
| for(let j = i + 1; j < word.length; j++){ | |
| if(word[i] === word[j]) count++ | |
| if(count === k){ | |
| count = 1 | |
| tempWord = word.slice(0, j +1 - k) + word.slice(j + 1) | |
| console.log(tempWord) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const express = require('express'); | |
| const passport = require('passport'); | |
| const router = express.Router(); | |
| const { fbAuth, fbCb } = require('../lib/facebook'); | |
| router.get('/oauth/:id/facebook', fbAuth); | |
| router.get('/oauth/:id/facebook', fbAuth()); | |
| module.exports = router; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| ls Postman*.tar.gz > /dev/null 2>&1 | |
| if [ $? -eq 0 ]; then | |
| echo "Removing old Postman tarballs" | |
| rm -f $(ls Postman*.tar.gz) | |
| fi | |
| curlExists=$(command -v curl) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const events = require('events'); | |
| const eventsEmitter = new events.EventEmitter(); | |
| let eventName = 'greeting'; | |
| class Publisher { | |
| constructor(){ | |
| } | |
| publishMessage(){ | |
| let message = ‘hi there’; | |
| eventsEmitter.emit(eventName, message); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const express = require('express'); | |
| const app = express(); | |
| // Application | |
| app.get('/', function(req, res) { | |
| if (process.env.NODE_ENV === 'development') { | |
| for (var key in require.cache) { | |
| delete require.cache[key]; | |
| } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const AWS = require('aws-sdk'); | |
| const s3 = new AWS.S3(); | |
| const BUCKET_NAME = 'packet name'; | |
| const IAM_USER_KEY = 'key'; | |
| const IAM_USER_SECRET = 'secret'; | |
| // Bucket names must be unique across all S3 users | |
| /** | 
NewerOlder