Skip to content

Latest commit

 

History

History
70 lines (45 loc) · 1.6 KB

File metadata and controls

70 lines (45 loc) · 1.6 KB

Securing Safe Food

A full-stack web application built with React (frontend), NestJS (backend), PostgreSQL (database), and AWS (Cognito for auth, S3 for file storage).

Prerequisites

Environment Setup

We use yarn for dependency management. Install app dependencies by running this command at the repo root (ssf):

yarn install

To set up your backend, follow the backend-specific instructions here.

*Note: you may need to prefix your nx commands with npx. For example, to serve the frontend, if:

nx serve frontend

doesn't work, try:

npx nx serve frontend

Start the app

To start the development server, run one of the following commands:

You can also run both the frontend and backend with one command:

nx run-many -t serve -p frontend backend

CI (GitHub Actions)

On every push and pull request, GitHub Actions runs:

  • Prettier — checks formatting
  • Backend tests — runs Jest test suites

Local commands

Prettier:

yarn prettier:check   # verify formatting
yarn prettier:write   # fix formatting

Backend tests:

yarn test

The locally hosted frontend and backend will update live as you make changes to the code. Happy coding!