This project consists of a very rudimentary version of a Kanban/Trello board, currently usable by a single user (which I know for the most part, is not very useful). The app allows a user to create an account, log in, create projects, add tasks to said projects, and progress the tasks through 3 states of completion: "TO DO", "In-Progress" and "Completed". The app offers a very minimal/barebones/ugly user interface (chose a descriptor based on however polite or accurate you like to be, I did not view this as a front end project.)
This is a project built to display my understanding of several concepts.
- ActiveRecord & Sinatra.
- MVC program architecture.
- CRUD functionality.
- Using multiple models.
- Modelling user accounts.
- User authentication.
- Input validation.
-
clone this repository.
git clone https://github.com/SVRourke/kanban_board.git
-
cd into the project directory and run "bundle install
-
At this point you can either start the program with shotgun or rackup.
-
BONUS if you'd like greater security you need to comment out the line in the application controller with the hardcoded session secret and set a random secret as an environment variable.
app/controllers/application_controller # Comment this line out: set :session_secret, 'Development' # Uncomment this line set :session_secret, ENV.fetch('SESSION_SECRET')
-
Then create an environment variable 'SESSION_SECRET' and set it to a random 64 byte hex.
# Generate a key ruby -e "require 'securerandom'; puts SecureRandom.hex(64)" # copy the output to the clipboard $> 6cbb8fa...(shortened for brevity)...55fb724 # create the environment variable echo "export SESSION_SECRET=COPIED-VALUE" >> ~/.bashrc
Contribution is welcome, fork the repo, create a branch, go ham.
if you think your changes would be a good addition to the project, drop me a line. If you'd like to use this as a starting point for your own project? GO Ahead! I do not intend to turn this into a product or business, this was purely an educational exercise.
MIT License
Copyright (c) 2020 Samuel V. Rourke
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.