Skip to content

uwblueprint/don-efficace

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
Feb 24, 2024
Mar 24, 2024
Feb 1, 2024
Feb 1, 2024
Feb 1, 2024
Feb 1, 2024
Feb 1, 2024
Feb 4, 2024
Feb 4, 2024
Mar 14, 2024
Feb 4, 2024
Feb 1, 2024
Feb 1, 2024
Feb 1, 2024

Repository files navigation

don-efficace

Welcome to the don-efficace platform repository!

Stack Choices

Backend Language: TypeScript (Express.js on Node.js)
Backend API: REST
Database: PostgreSQL
User Auth: Yes
File Storage: Yes

Table of Contents

Documentation

Starter Code
Don Efficace Notion

Getting Started

Prerequisites

Setup

  1. Clone this repository and cd into the project folder
git clone https://github.com/uwblueprint/don-efficace.git
cd don-efficace
  1. Ensure that environment variables have been added to the following directories:
/.env
/frontend/.env
  1. Run the application
docker compose up --build

Linting & Formatting

Mac

docker exec -it scv2-backend /bin/bash -c "yarn fix"
docker exec -it scv2-frontend /bin/bash -c "yarn fix"

Windows

docker exec -it scv2-backend bash -c "yarn fix"
docker exec -it scv2-frontend bash -c "yarn fix"

Database/Prisma Information

Note: Manual Database Setup

If for some reason docker container is not syncing with your prisma models in backend/typescript/prisma/schema

Update .env file in /backend/typescript to be (Use different username for Mac)

DATABASE_URL=postgresql://postgres:postgres@localhost:5432/scv2

Try running (when the docker container is up):

npx prisma migrate dev

This may require you to upgrade your node version locally so try (only if it tells you the node version is insufficient) (https://www.freecodecamp.org/news/node-version-manager-nvm-install-guide/) If you don't have nvm

nvm install 18.18.2
nvm use 18.18.2

Creating Prisma Migration

Go to backend/typescript and run

npx prisma migrate dev

Useful Prisma Commands

"npx prisma db push" to push "npx prisma studio" to run prisma

Need to change scv2 to don-efficace at some point

The Team

Term 1 (W24):

Project Lead: N/A
Product Managers: Jacqueline Fung & Zafir Raeid
Developers: Jessica Ding, Nandini Mehrotra, Shushawn Saha
Designers: Hillary Heung, Sunny Zhang, David Stirling

Huge shoutout to the Internal Tools team for creating StarterCode v2!