by Jinook Jung
-
This app works best with Ruby 2.6.1 & Rails 6.1.3.1.
-
Visit my Github repository and clone the code to your local directory:
git clone https://github.com/jinook929/_flatiron_project4.git
.
- Enter into the _flatiron_project4/_flatiron_project4_backend folder:
cd _flatiron_project4/_flatiron_project4_backend
. - Execute
bundle install
and runrails s
in terminal. - In a new terminal, move to the directory, _flatiron_project4/_flatiron_project4_frontend folder:
cd _flatiron_project4/_flatiron_project4_frontend
. - Then, open the
index.html
in your browser (please avoid using live server).
- You can either sign up for your own account or use the existing accounts to log in (5 users are pre-set:
[email protected]
,[email protected]
,[email protected]
,[email protected]
,[email protected]
[password for everyone is123
]). - Before logging in, user can see all the notices/comments.
- Each notice has its category (please refer to category keys above notice display area).
- After logging in, you can create new notices/comments, and edit or delete your own notices.
- Keyword search is available for any user (both before and after logging in) via the search box on the navbar.
- There are a couple of Easter Eggs, so try to find them~^^√
t.string :email
t.string :username
t.string :password_digest
...
t.string :title
t.string :description
t.string :category
t.integer :user_id
t.datetime :updated_at
...
t.string :content
t.integer :notice_id
t.integer :user_id
t.string :username
...
has_many :notices, dependent: :destroy
has_many :comments, through: :notices
has_secure_password
validates :email, presence: true
validates_uniqueness_of :email, :case_sensitive => false
belongs_to :user
has_many :comments, dependent: :destroy
validates_presence_of :title, :description, :category, :user_id
belongs_to :notice
belongs_to :user
validates_presence_of :content, :user_id, :notice_id
Bug reports and pull requests are welcome on GitHub at https://github.com/jinook929/_flatiron_project4. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
- Jinook Jung [email protected]
© Jinook Jung
The app is available as open source under the terms of the MIT License.