mdawess / onyx

💼 Job board for the Onyx Initiative

Home Page:http://jobs.onyxinitiative.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

http://jobs.onyxinitiative.org/

License:MIT License


Languages

Language:TypeScript 88.5%Language:CSS 8.6%Language:Python 2.4%Language:JavaScript 0.3%Language:Dockerfile 0.1%