Git Product home page Git Product logo

inventory-management's Introduction

Inventory Management

Dependencies

  • Ruby (tested with version 3.2.2)
  • Node.js (tested with version 20)

Setup

App setup

The command below will install all needed dependencies for the backend application and setup the database.

bin/rails setup

After that, you'll need to setup the frontend dependencies. Just run:

yarn

And, lastly, you need to seed some data to the database. Run:

bin/rails db:seed

Configure the Location name

Finally, before starting the server, change the file under config/application.rb and look for config.x.location.name. In there, you'll set the name of your location.

Start the server

And, finally, start the server:

bin/dev

Developing the application

Run unit tests

This uses tests from both minitest and rspec. To run them:

Minitest:

bin/rails test

RSpec:

bin/bundle exec rspec

Run E2E tests

This app uses Cypress for E2E tests.

There are 2 ways to execute Cypress's tests.

Headless

This will run the tests in a headless browser and show the results in the terminal.

RAILS_ENV='cypress' rake cypress:run

Iterative

This will open the Cypress application, which will use a real browser to run your tests in an interactive, easy to inspect test runner, with real browser visualization.

RAILS_ENV='cypress' rake cypress:open

inventory-management's People

Contributors

arthurgeek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.