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:
[email protected]
- 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 install
cp config/database.yml.example config/database.yml
- Open the
config/database.yml
file and set thedatabase
username
andpassword
variables according to your needs - Start your installed MySQL
bin/rake db:create
bin/rake db:migrate
bin/rake db:seed
rm config/credentials.yml.enc
EDITOR=nano bin/rails credentials:edit
this command will prompt up a nano editor with some config data; you just need to pressCTRL+X
to save andENTER
key to exit the editor.bundle exec rails s -p 3001
- Follow the client side instructions written here
Login available with:
- Username:
[email protected]
- Password:
password