This is the now deprecated and no longer maintained prototype for the Stockcubes application
The application was design to help users manage their food at home, with inventory systems, automatic shopping list creation and meal planning.
The code of the application is a mix of Ruby on Rails for the backend and React components for the frontend
- Ruby version >=2.5.0
I recommend using Homebrew to manage your packages and Ruby environment (if you're on a Mac).
If you're using Homebrew on Mac then you use it to install PostgresQL (the database type) with the command brew install postgres
- there are many guides out there to explain this process in more detail eg this one
- Pull down repo
- Copy
.env.template
to create a new.env
file and fill with your details - Run
bundle install
to install Gems - Run
rake db:create
to create the databases - Run
rake db:migrate
to migrate the databases . Runrake db:seed
to seed the databases with data (make sure you have the .env file setup first with a personal email, password and Rails environment variable) - Run
rails server
(orrails s
) to run server - See app at http://localhost:3000
Steps to run with Browser Sync
- Run the app as described above with
rails server
(orrails s
) - Open a new terminal window
- Naviagte to the '/browser-sync' folder inside this repo
- For first use, run
npm install && npm start
- At all other times, only run
npm start
- Use proxy address provided, shown in terminal window
This project is licensed under the terms of the MIT license.