Post-It is a simple note taking application built using a jQuery front end and a Rails back end. The front end leverages AJAX to handle user requests spontaneously, communicating to a serialized JSON back end.
You can see a demo version of the application deployed to Heroku here: https://rails-post-it.herokuapp.com/
Once users have set up an account, they can create notes with text and save them without a page reload. Notes can also be sorted by tags.
- Authentication (user registration and login) is handled by the Rails Devise gem.
- The back end uses ActiveRecord as the ORM and ActiveModelSerializers for serializing responses as JSON. It uses PostgreSQL for the database via the pg gem.
- The front end leverages Bootstrap 4 via the Bootstrap gem in conjunction with Rails ERB templates. Styling uses SCSS.
Since the application uses PostgreSQL, you need to have it installed locally on your machine with a user that has table creation privileges. You can get further instructions here. If you'd rather not bother with PostgreSQL, you can use an older version of the application that uses SQLite3 here.
Create the database with
bundle exec rake db:create and run migrations with
bundle exec rake db:migrate. You can run
bundle exec rake db:seed to populate the database with some sample data. Run
bundle exec rails c to bring up the console, type in
User.last to get the last created user's email and you can use that to login with the password "password" and see some sample notes and tags.