- Install docker: https://docs.docker.com/engine/install/
- 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 .
- 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.
-
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
- Initial page 💌
- Crush says Yes 🥳
- Crush Rejects first time 😕
- Crush Rejects for the 2nd time 😩
- Damn it's not looking good 😰
- It's definitely not looking good 😓
- Let me disable the rejection button itself. 🧠
Good Luck! 😃