- Node.js ^14
- PostgreSQL 12
git clone https://github.com/asifjoardar/health.git
cd backend
cp .env.example .env
- Configure your .env file as your database
npm i
npm start
We use AWS EC2 & GitHub Actions for CI/CD
After creating the instance click on it then go to the security section and click on security groups and then click edit inbound rules. Now open 80 and 443 ports on your instance for the web server and port for your desired database.
First of all, connect to your instance. Then install and configure Nginx to forward connections from port 80 to 8080. This will be done via our NGINX config in the sites-available file.
You may follow the tutorial described by Amazon. Remember your RDS endpoint, port, username, and password.
Add the following values to your GitHub secrets -
- HOST: Your EC2 instance's Public IPv4 address
- USER: EC2 username
- KEY: AWS Deployment Key
- PORT: EC2 SSH Port
- DB_SYNCHRONIZE: Turn on Database Synchronization? (true/false)
- DB_LOGGING: Turn on Database Logging? (true/false)
- DB_TYPE
- DB_HOST
- DB_PORT
- DB_USERNAME
- DB_PASSWORD
- DB_NAME
You can manually trigger from GitHub or push a new commit to the repository to automatically trigger the pipeline