You must fork the project and create a public project in your gitlab/github account.
//With a SSH Key
git clone git@github.com:devSpallian/spallian-test.git
OR
git clone https://github.com/devSpallian/spallian-test.git
Create a new public repository in your Gitlab/GitHub account, link the project
git remote set-url origin [url to your gitlab/github project]
Docker is not necessary but recommended https://docs.docker.com/
- Linux : https://docs.docker.com/desktop/install/linux-install/
- Mac : https://docs.docker.com/desktop/install/mac-install/
- Window : https://docs.docker.com/desktop/install/windows-install/
- Linux/Mac : https://docs.docker.com/engine/install/ubuntu/
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
If done correctly, you will see output similar to this:
//Output
docker-compose version 1.29.2, build 5becea4c
Do not forget to navigate to the root folder of the project to use these commands.
Depending of your docker installation you must choose between compose v1 or v2
Type the following command in a terminal:
// compose v1:
docker-compose build
// OR compose v2:
docker compose build
Type the following command in a terminal:
//compose v1:
docker-compose up -d
//OR compose v2:
docker compose up -d
If everything is working you should see the container running using this command:
//compose v1:
docker-compose ps
//OR compose v2:
docker compose ps
Type the following command in a terminal:
//compose v1:
docker-compose down
// OR compose v2:
docker compose down
Type the following command in a terminal (the container must be running):
//compose v1:
docker-compose exec app npm install [dependency-name]
// OR compose v2:
docker compose exec app npm install [dependency-name]
//compose v1:
docker-compose exec app sh
// OR compose v2:
docker compose exec app sh
if for some reason you can't make docker to work, follow these instructions
However, it might not work unless you have the right version of Node
- Install NodeJs
- Install npm
Then use the following command inside the project folder to install necessary dependencies:
npm install
Then run the project:
npm run start