Skip to content

Latest commit

 

History

594 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onyx

💼 Job board for the Onyx Initiative

Backend

Introduction

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.

Local Deployment

Prerequisites

Deployment

  1. Clone the repository
  2. Install the dependencies
npm install
  1. Configure the AWS CLI (Only needed if deploying to AWS and need to use and access key)
aws configure
  1. Deploy the application
serverless deploy
  1. The application will be deployed to AWS and the endpoint will be displayed in the console.

Database deployment

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}

About

💼 Job board for the Onyx Initiative

Topics

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages