Simple, but fancy implementation of one of the most popular games.
- Clone the repository
...and open it
git clone git@github.com:natikos/who-wants-to-be-a-millionaire.git <your_dir_name>
cd <your_dir_name>
- Run server
You will see the message that sever is starting on port
cd server/ && go run main.go
8080
- Start client app
There are two ways to proceed: using repo's GitHub page and set
Access-Control-Allow-Origin
header tohttps://natikos.github.io
in order to fix CORS errors. Restart your server and now you are able to play! Or you can run client locally, go toclient/
:- Install dependencies
npm install
- Run React app
npm start
- Install dependencies
For these steps you need docker on your machine
-
Dockerizing server
cd server/ && go build
Handsome Gopher will create a file with name
server
. Now you are able to build your docker image:cd .. && sudo docker image build -t <container-name> .
You should see the message about successfull operation. Run your container!
sudo docker container run -p 8080:8080 <container-name>
Your server is available on
http://localhost:8080
-
Dockerizing client application Ooops, to be continued... But there is something for your own docker journey on branch
feature/client-docker