Skip to content

onipedeo/InvoiceForge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Finals!!!

Collaborators

  • Oluwatobi Onipede
  • Andrew Li
  • Nathan Wiles
  • Caroline Olagunju

Project Name

  • InvoiceForge

Dependancies

  • During development, make sure to frequently run the following command to ensure that you have the latest dependancies:
    npm install

Trouble Shooting

-if you are have trouble with installing the dependancies, make sure that you are using node 16. You can check your node version by running the following command:

    node -v

Database Initialization

  1. Ensure that your .env has the following:
    DB_NAME=your_db_name
    DB_USER=your_db_user
    DB_PASSWORD= your_db_password
    DB_HOST=localhost
    DB_PORT=5432
  1. Ensure that you have a postgres database created with the name specified in your .env file
  2. Ensure that you are in the backend directory:
    cd backend
  1. run the following commands in the terminal:
    npm run db:migrate
    npm run db:seed
  1. You should see two message in the terminal that confirm that the migration and seeding were successful
# lines preceeding
Using environment: development
Batch 1 run: 1 migrations
# lines in between
Using environment: development
Ran 3 seed files
  1. You should now have a database with the correct tables and some seed data

Running Tests

  1. Ensure that you are in the desired directory:
    # depending on which tests you want to run
    cd frontend
    cd backend
  1. Run the following command:
    npm test
  1. cypress is a bit different Run the following command:
    npm run cypress

Creating Jest Tests (backend)

Follow the guide found here: https://jestjs.io/docs/en/getting-started

Creating Vitest Tests (frontend)

Follow the guide found here: https://vitest.dev/guide/

Creating Cypress Tests (frontend)

Follow the guide found here: https://docs.cypress.io/guides/overview/why-cypress

Setting up App password to authenticate gmail

follow the instruction on this link and apply changes to backend dotenv https://support.google.com/accounts/answer/185833?visit_id=638364070840582656-2264851718&p=InvalidSecondFactor&rd=1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •