Skip to content

ArturRomanchenko/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http server

About

Implementation of an http server in C++, and further containerization via Docker

Built With

Building and Running

Install docker on the machine and configure it.

  1. Clone repo to machine
git clone https://github.com/ArturRomanchenko/server.git
  1. Go to the repository folder cd server/

  2. Build the docker image

docker-compose build
  1. Start the server
docker-compose up

When you are done with the server and need to shut it down

  1. Closing the server in the terminal where it is running.
Ctrl + C
  1. Open a second terminal window in the project directory where you cloned the repository
docker-compose down

NOTE: if you made a change to the server files, rebuild the docker container to update

Usage

When you start the docker container docker-compose up, go to your favorite browser and write in the search bar: http://localhost:8080/ and press to F5

Contact

Telegram