SalesBox is a easy to use cloud based sales analyzer that accepts text files (tab separated) uploads.
https://sales-box-app.vercel.app/
With SalesBox you can:
- Check the Gross Income for each upload
- Check the All Time Gross Income for all the uploads made
- See a list of uploaded files to control your analysis.
This repository is the Rails back-end for the SalesBox project. Follow the setup below to install and run it locally.
To run the project, you will need the following dependencies installed:
-
After clonning the repository, in the
ROOT
directory run the following command to install the dependencies.bundle install
To run the project locally, use the commands bellow.
- Starts the ProstgreSQL service.
Linux:
sudo service postgresql start
MacOS:
brew service postgresql start
-
Create and prepare the database.
bin/rails db:create bin/rails db:migrate
-
Run the Rails server.
bin/rails server
The Rails server will run by default on localhost:3000
.
-
Run tests with
bundle exec rspec
-
For reporting access
coverage/index.html
on your browser.
- Use ActiveStorage with some service like AWS for work with the company sales uploaded file.
- Cache on total all-time gross income endpoint.
- Some code refactoring to enable the disabled RuboCop cops and Reek rules.