❤️ Swipa Backend is the backend part of Swipa, a dating app.
All installation instructions are geared for macOS Apple Silicon system. By default, all UNIX-based and Linux-based system are already installed with make
.
For Windows system, make
can be installed using 3 ways:
- Using Make for Windows
- Using
chocolatey
to install make - Using Windows Subsystem for Linux (WSL2)
-
Clone repository
git clone git@github.com:ariessa/swipa-backend.git
-
Create
.env
file and insert valuesBACKEND_PORT="" POSTGRES_HOST="" POSTGRES_PORT="" POSTGRES_DATABASE="" POSTGRES_USER="postgres" POSTGRES_PASSWORD="" FRONTEND_DEV_URL=""
-
Build and start all Docker containers
make up
-
Run SQL query inside containerised PostgreSQL database
# Start a Bash shell inside Docker container 'swipa-database' docker exec -it swipa-database /bin/bash # Switch the user to the 'postgres' user within the Docker container su - postgres # Open PostgreSQL CLI psql # Connect to database 'swipa' \c swipa # Run query # Example: select * from users; select <column(s)> from <table>;