GithubHelp home page GithubHelp logo

ask-out-crush's Introduction

License: MIT

Ask your crush out

A simple NGINX docker image, which displays a dynamic webpage to ask your crush out on a date

Pre-requisites

How to build image

  • Clone the git repo and build the image.
    $ git clone https://github.com/rbnhd/ask-out-crush.git
    $ cd ask-out-crush
    
    If you wish to customize the text or put the name of your Crush, edit the index.html file at this step and then run the below command. 
    
    $ docker build -t date_request:v1 .
    
    

Run your container

  • Although, you can run on any http port on host, however port 80 is recommended if your host IP is accessible on the internet (requests on public IP defaults to port 80)
    $ docker run --rm --name date_request -d -p 80:80 date_request:v1
    
    The --rm flag tells docker that the container should automatically be removed after we close docker using ($ docker stop date_request)
    The -d flag means that a Docker container runs in the background of your terminal in detached mode. 
    
    

Test your deployment

  • If you have deployed on local machine (why would you do that? You want to send this to your crush, right?)

    In your browser, go to localhost:80
    
  • If you have deployed on a Virtual machine with public IP(for example an AWS EC2 instance)

    In your browser, go to $PUBLIC_IP:$PORT
    
    If you are running your container on port 80, just inputting the public IP should be enough. 
    
    You can find the public IP of your Virtual machine either through the console of your Cloud provider, or if you have terminal access to the VM you can get it by running below command in the VM.
    $ curl -4 ifconfig.me
    

Screenshots:


Good Luck! ๐Ÿ˜ƒ

ask-out-crush's People

Contributors

rbnhd avatar

Watchers

 avatar

Forkers

d3v-sana

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.