- About the Project
- App Diagram
- Video Presentation
- Live Demo
- Project Management
- Built With
- Prerequisites
- Getting started
- Usage
- Run automated tests
- Deployment
- Authors
- Contributing
- Acknowledgments
- Screen shots
- License
This app keeps track of you and your friends drinks. It's purpose is to showcase all what I have learned in the Microverse course curriculum.
You can find the video of the app here (you have to sign in on youtube to see the video.)
I used github project management to manage apps deadlines and due dates.
- Ruby v2.7.1
- Ruby on Rails v6.0.3
- Postgresql
- Ruby: 2.7.1
- Rails: 6.0.3
- Postgres: >=10.12
To get a local copy up and running follow these simple example steps
-
Clone the repository by running in the console of your local machine the following command
git clone https://github.com/AlfredoElizarraras/Drinks-collector.git
-
Change directory to Drinks-collector folder.
Setup
If you have another ruby version and have rbenv, you can run:
rbenv install 2.7.1
Install gems with:
bundle install
Setup database with:
sudo -u postgres psql
CREATE ROLE developer WITH CREATEDB LOGIN PASSWORD 'pass123';
Exit postgres console \q Make sure you have your yarn packages up to date. If not:
yarn install --check-files
Then
rails db:setup
rails db:migrate
Notes for development
-
As this is a web app is better to test it on a mobile, for this you can use ngrok. In ngrok page follow the instructions to download it for your own specific OS, then you can follow this cool post that I followed in order to have ngrok running for development. So you can do the following:
- Start ngrok in the console (in the folder directory you download and extract ngrok)
./ngrok http 3000 export NGROK_HOST=ngrokHTTPSgivenURL
- Start server with:
rails server
-
Now you have to be able to visit the ngrok given URL on your mobile phone. OR
Open
http://localhost:3000/
in your browser.
-
For testing, omniauth authentication is better if you use another deployment site or use GitHub as it is the only one of the three providers that accept callback for localhost 3000
rpsec spec/models/. --format documentation
rpsec spec/features/. --format documentation
- Change the 'xyz' part so you have your own Drinks collector app deployed.
heroku create drinks-collector-xyz
git push heroku +HEAD:master
heroku run rails db:migrate
- To manage Environment variables I used Figaro gem, so you can push the variables to Heroku as in the Figaros gem documentation
figaro heroku:set -e production
👤 Oscar Alfredo Gómez Elizarrarás
- Github: @AlfredoElizarraras
- Twitter: @OscarAlfredoGm4
- Linkedin: @OscarAlfredoGómezElizarrarás
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse
- Odin project
- I took the idea of this app from Gregoire Vella on Behance from his awsome design Snapscan
- The whole project requirements, came from microverse capstone project in notion: group our transactions
- The icons I used, are from the next resources:
- I took the font used in the entire app from google fonts
This project is MIT licensed.
Copyright 2020 Oscar Alfredo Gómez Elizarrarás
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.