Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

opengovsg/memos

Repository files navigation

Memos

Getting started

Ensure that you have access to a PostgreSQL instance running in your development environment. You have two options if you do not have PostgreSQL already set up:

  1. Install using Homebrew: brew install postgresql@13
  2. Run PostgreSQL using Docker

After setting up PostgreSQL, run the following to start up the development environment.

# Create development database
$ createdb memos_dev

# Setup .env files and replace values within it
$ cp backend/.env-example backend/.env

# Install dependencies
$ npm install

# Run migrations
$ npm run on-backend -- migration:run

# Start development client and server
$ npm run dev

Migrations

In backend folder,

Run migrations

npm run migration:run

To auto-generate migrations

npm run migration:gen -- -n <migration-name>

Development and Deployment

Deployment to Elastic Beanstalk is carried out through Github Actions.

  • To create a feature/bugfix: create a branch off develop
  • To push to staging: force push onto staging
  • To push to production: Squash a PR from your branch into develop, then merge a PR from develop into production

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published