💼 Job board for the Onyx Initiative
The onyx job board is deployed on an AWS EC2 instance. Below are the steps to deploy it locally using serverless for testing and development purposes and to deploy it to AWS.
- Clone the repository
- Install the dependencies
npm install
- Configure the AWS CLI (Only needed if deploying to AWS and need to use and access key)
aws configure
- Deploy the application
serverless deploy
- The application will be deployed to AWS and the endpoint will be displayed in the console.
If you make modifications to the database schema (backend/src/database/schema.ddl), you will need to deploy the database. You will likely need to modify 1. the privacy and 2. the security groups to allow local access to the database. Make sure to change the security group back to the original settings after you are done.
serverless deploy --stage dev --function deployDatabase
# or connect to the database via the psql cli
# port automatically forwarded to 5432
psql -h {HOSTNAME} -U {MASTER_USERNAME} -d {DATABASE_NAME}