An system allows user to record their sleep time.
Ruby version: 2.5.1
Rails version: 5.2.2
Install Bundler to manager dependencies: gem install bundler
Run the installers:
$ bundle install
$ rails webpacker:install # OR (on rails version < 5.0) rake webpacker:install
$ rails webpacker:install:react # OR (on rails version < 5.0) rake webpacker:install:react
$ rails generate react:install
Setup the database:
bundle exec rake db:migrate
bundle exec rake db:seed
Start the application:
$ bundle exec rails s
$ bin/webpack-dev-server
- Clock In operation, and return all clocked-in times, ordered by created time.
- Users can follow and unfollow other users.
- See the sleep records over the past week for their friends, ordered by the length of their sleep.
- webpacker - Easy to use the JavaScript pre-processor and bundler webpack 4.x.x+ to manage application-like JavaScript in Rails.
- react-rails - A flexible tool to use React with Rails.
- axios - Promise based HTTP client for the browser and node.js.
- react-bootstrap - Bootstrap 4 components built with React.
- date-fns - Simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js.
Albert Fang