Git Product home page Git Product logo

eduqg / lifetoremind Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 15.0 5.63 MB

:notebook_with_decorative_cover: Rails website to help students to create career plans.

Home Page: https://lifetoremindhub.herokuapp.com/

License: BSD 3-Clause "New" or "Revised" License

Ruby 40.65% CoffeeScript 0.45% JavaScript 3.51% HTML 21.49% Dockerfile 0.07% SCSS 33.75% Shell 0.08%
rails ruby-on-rails strategic-planning career

lifetoremind's Introduction

LifeToRemind

Build Status

LifeToRemind is a website for career-oriented Personal Strategic Planning.

Deploys

LifeToRemind stable

LifeToRemind master

Tools and Environment

  • Ubuntu 16.04.5 LTS 64-bit
  • RVM 1.29.8
  • Ruby 2.5.5p157
  • Rails 5.2.3
  • PostgreSQL 9.5.17

Installation and Execution

In one terminal, clone the repository.

git clone https://github.com/eduqg/LifeToRemind

Open the project folder.

cd LifeToRemind

Install Ruby Version Manager (RVM) for application configuration.

Run the commands to set the correct version for the project.

rvm install 2.5.5
gem install rails -v 5.2.3
bundle install

Install Postgres to the application database.

Make the necessary migrations.

rake db:create
rake db:migrate

Run the project.

rails s

Open the browser at localhost:3000

To run the application tests:

rspec

Execution with DOCKER (Open issue)

Install Docker

Define variables

Define on: ./env_file.env

DB_USER=postgres
## The same name defined on docker-compose.yml
DB_HOST=db_ltr
## If you change default port 5432 you need to change in database.yml as well as execute a "docker-compose --build".
DB_PORT=5432
RAILS_MAX_THREADS=5
RAILS_ENV=development

Usefull Commands

## build docker-compose.yml
docker-compose build

## run deatached
docker-compose up -d

## list containers
docker ps -a

## join in the bash container
docker exec -it <container> bash

## stop container
docker stop <container>

## remove container
docker rm -f <container>

## stop all containers from docker-compose
docker-compose down

## inspect container
docker inspect <container>

## show container logs
docker logs <container>

## follow container logs
docker logs -f <container>

Execution Tests with Docker

Change enviroments

Change de value of key RAILS_ENV to test in ./env_file.env

RAILS_ENV=test

Run compose

docker-compose up -d

List containers and get "web" containerid

docker ps -a

Run tests

docker exec -it <container> bash -c "bundle exec rspec"

Become a Life to Remind Developer

To contribute to the project check the open issues. If what you want to improve or the problem you found is not already listed, create a new issue with a description of the problem. To contribute to the project send a Pull Request to the repository, it will be evaluated later.

Step 1 - Make a copy of the repository by clicking on the Fork tab.

fork

Step 2 - Download the Life to Remind project created in your account.

git clone https://github.com/SEU_USUARIO/LifeToRemind.git

Step 3 - Make changes to the code and upload it to your repository.

git add new_file.txt
git commit -m "Adding new file"
git push origin master

Step 4 - Enter your repository with the changes made and click to make the Pull Request.

pull

Step 5 - Wait for your Pull Request to be approved and congratulations on becoming a contributor to the Life to Remind Project!

Application Images

mainpage swot
status plan

Donations

No sponsors yet! Get in touch to be the first!

If you want to support @eduqg, please consider buying a coffee. Thank you for your donation!

Buy Me A Coffee

lifetoremind's People

Contributors

decabeza avatar dependabot[bot] avatar eduqg avatar exodusactual avatar luchiago avatar nathandonato avatar pacoluna1 avatar samuelssantos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lifetoremind's Issues

Improve table generated in pdf

Improve the table generated on exported pdf's. Create divisions on the table generated to be clear to the user his Strengths, Weaknesses, Threats and Opportunities. Also, the generated table must use all the space inside the card.

To generate pdf, sign in, go to "Meu Planejamento", and click in "Gerar PDF".

Captura de tela de 2019-10-10 11-34-37

Create label in objective card

Create a label inside the objective card in the bottom right corner, the content must be the sphere (âmbito) of that objective. Make sure you style is inside one .scss file. I thought a label like this this one:

Captura de tela de 2019-10-12 08-33-16

There is cards of objectives in /myplan /objectives/new /editobjective?objective_id=

Captura de tela de 2019-10-12 08-30-13

Configure Docker Container

The project don't have a docker configuration. Configure one container to help other developers.

Requirements:

  • Use docker compose
  • Use Postgresql

List commiters inside project

It would be nice a list of all commiters inside one page of the project. There's a route to contribute already in localhost:3000/home/contribution. Feel free to design this page.

Captura de tela de 2019-10-08 18-22-18

Refactor Plans Controller

Extract methods from plans controller. For exemple, there is many method related to pdf plan generation. Will be accepted multiple pull requests.

Devise Mailer

All user structure are defined. Configure devise mailer to recover password.

New layout with cards

In some pages with cards, there is an old layout. Create new layout pages with cards. Feel free to design, but I was thinking in somethind like this (without user image):

cardexample

Pages: localhost:3000/missions, localhost:3000/visions, localhost:3000/csfs

Captura de tela de 2019-10-10 11-22-19

Configure multiple languages

Now, some strings are translated with the i18n gem. Is necessary to the user choose the language in the main page of the application. Translate just some strings to make it work, later we will open more issues to translate all website.

Roles not appearing at PDF creation

Description

The generated PDF document shows the "Meus Papéis" header, but it is just a blank space, I believe that what I've written on the roles section should appear there.

Screenshots

image


OBS I've made sure that I have added roles

System Settings

Bug on the Production Version, on Heroku: http://lifetoremindhub.herokuapp.com/myplan
Using on Chrome 78.0.3904.70 (Official Build) (64-bit)

Implement responsive table

In the page /plans/swotedit would be good a responsive table. Keep the color design and align it with the card above (in blue).

Captura de tela de 2019-10-10 11-28-36

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.