- Γιάννης Κωνσταντίνου 1115201700067
- Κωνσταντίνος Θεοφίλης 1115201600287
- Σπύρος Κάντας 1115201800059
- Front-End: React
- Back-End: Node.js ~ Express-API
- Database: MongoDB
- Deploy: Docker
To execute our project locally, you need to have Node.js and MongoDB intalled to your system.
You can download the software from the links bellow:
Node.js Download
MongoDB Download
After installation finish:
- Be sure that the direcory
C:\Program Files\MongoDB\Server\<version>\binwas successfully created. - Check your Node.js version with
node --versionin you command line. The version should appear likev14.17.0
- Navigate to our project root directory
/edoatapand type the following command in your commnad line:
npm run dev
and you are ready, now wait and the script will take care of all packages dependencies and it'll make sure to work.
-
Open a terminal window and update the local repository with:
sudo apt update -
Before installing the software, make sure you remove any old Docker packages on your Ubuntu by running the command:
sudo apt-get remove docker docker-engine docker.io -
Now let’s install Docker on Ubuntu. Run the following command in the terminal window:
sudo apt install docker.io
Typeyand hitEnterto confirm the installation. Once the install is completed, the output notifies you Docker has been installed. -
To verify the installation check the Docker version:
docker –versionThe output displays the Docker version. Should look like this:
Docker version 20.10.12, build e91ed57
-
Start the Docker service by running:
sudo systemctl start docker -
Then, enable it to run at startup:
sudo systemctl enable docker -
To check the status of the service, run:
sudo systemctl status docker
The output should verify that Docker is up and running.
Note: Before start the docker you need to run this command:
sudo chmod 666 /var/run/docker.sock
Otherwise the docker will not execute correctly or it will show this message in terminal:
-
Compose docker:
docker-compose build -
Run docker:
docker run -dp 5000:3000 e-doatap-spyrosk_docker_client:latest
- Inside
/edoatap/edoatap/srcyou will find:- a direcory
/componentshaving all the html and css elements that our front-end use, - a direcory
/imagesand - a direcory
/utils.
- a direcory
Also inside /src you will find the main React file App.js
-
Inside
/edoatap/serveryou will find:- a direcory
/modelswith the Schemas of our MongoDB collections, - a direcory
/routeswith the API call routes (the URIs that out api listen) - a
server.jsfile. This is the main file for out connection with the database.
- a direcory