Fullstack dockerized web application.
- Frontend | React
- Backend | Node, Express
- DB | PostgreSQL
- Clone this repository
- Run
npm install - Make sure you have PostgreSQL and Docker installed and running on your computer (If you have Linux system, make also sure you have installed docker-compose on you computer)
- You must add your own API key in the face-detection-api/controllers/image.js file to connect to Clarifai API. You can grab Clarifai API key here
- Run
docker-compose up --buildin face-detection and face-detection-api subfolders for the first setup phase or just run thescript.shfile to build and run docker containers on detached mode
Open your web browser and access the app http://localhost:3000/.
Register and insert your image link
To access frontend's bash:
Run docker-compose exec face-detection bash command in the face-detection subfolder
To access backend's bash:
Run docker-compose exec face-detection-api bash command in the face-detection-api subfolder
To access postgres: (adjust PORT number if needed)
Run psql postgres://<username>:<password>@localhost:5432/face-detection-docker
After accessing to the db, you can check your users and login tables:
SELECT * FROM login;
SELECT * FROM users;
