Skip to content

Richarizaard/biancos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Hi there!

This pizza management app was written in Typescript TypeScript, React reactjs, GraphQL, and Ruby on Rails ruby_logo.


Backend testing suite uses RSpec, FactoryBot, and Faker

These tests are located within spec/**

If you want to run rspec tests that test the rails models and mutations you can -

  • Run a specific test via rspec spec/.../*_spec.rb (rspec spec/graphql/mutations/create_recipe_spec.rb)
  • Run the whole suite of tests via yarn rspec

Unit testing suite uses the React testing library and Jest.

These tests are located within test/javascript/**

If you want to run jest tests that test the components you can -

  • Run a specific test via yarn jest test/.../*_test.tsx (yarn jest test/javascript/components/ToppingCard.test.tsx)
  • Run the whole suite of tests via yarn jest

Run all tests with yarn test


How to setup env -

  • Clone this repo
  • Run yarn install and bundle install
  • Open up a console and run rails db:create and rails db:migrate
  • Open up two consoles and run the following two commands - bin/vite dev and rails s
  • Navigate to localhost:3000 and play around with the app

Live on - https://biancos.herokuapp.com/