An academic Ruby on Rails (API only) application built by students for the students of the Ferrara's Department of Engineering. Since it is an API only application, we've also build the client counterpart in React which you can find here.
📚 Disclaimer 📚
The project was born from one of our ideas and aims to fulfill the requests of the Concurrent Programming Laboratory course, i.e. it is not a platform associated with the University of Ferrara.
A demo is available at https://lifeatde.herokuapp.com
Login available with:
- Username:
john.doe@student.unife.it - Password:
password
Build a mobile first Web Application that allows, quickly and intuitively, to:
- Look for other students to collaborate with to carry out extra-curricular projects encouraging ideas and knowledge sharing
- Sell and exchange teaching materials
- Create study groups
- Stay informed about the news of the Department
The endpoints are authenticated using the JWT standard thanks to the ruby-jwt gem. They provide data that follow the JSON:API specification as the serialization is done by the fast_jsonapi gem. Of course every result is paginated and we decided to entrust this task to the pagy gem.
Requirements:
- Ruby 2.5.1
- Bundler
- MySQL >= 5.5
Clone or download this repository, open a new terminal inside the project directory, then:
bundle installcp config/database.yml.example config/database.yml- Open the
config/database.ymlfile and set thedatabaseusernameandpasswordvariables according to your needs - Start your installed MySQL
bin/rake db:createbin/rake db:migratebin/rake db:seedrm config/credentials.yml.encEDITOR=nano bin/rails credentials:editthis command will prompt up a nano editor with some config data; you just need to pressCTRL+Xto save andENTERkey to exit the editor.bundle exec rails s -p 3001- Follow the client side instructions written here
Login available with:
- Username:
john.doe@student.unife.it - Password:
password