Gatos Sin Hogar - Backend
Backend for ngo dedicated to the rescue of abandoned animals in the streets. This backend is being developed in NodeJs as a collaboration with El Rincón Institute mentoring the student Kilian Sosa.
To run the project:
- Install docker and run it
- docker build -t gatos-sin-hogar-backend .
- docker run -p 8080:7000 gatos-sin-hogar-backend
IMPORTANT This project has a frontend repository related
To have in mind:
Ubuntu doesn't accept RSA keys by default
- Edit /etc/ssh/sshd_config using
sudo nano
- Add this line at the end of the file
CASignatureAlgorithms +ssh-rsa
User from EC2 needs permissions to interact with Docker (Run this command in EC2 for troubleshooting) sudo usermod -aG docker $USER
CONNECT TO INSTANCE
ssh -i "gatos-sin-hogar.pem" ubuntu@ec2-18-133-76-236.eu-west-2.compute.amazonaws.com
GRANT PRIVILEGES TO THE USER TO CONNECT FROM DOCKER
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' my-node-app-container
You need to add privileges to an user to connect to this specific port of docker container.