A project management of computer breakdowns in university with Ruby&Rails (FrenchVersion)
- Ruby 2.5.1
- Rails 5.2.0
- Mysql-server
- Clone the repository.
git clone https://github.com/anouarbensaad/management-of-computer-breakdowns.git
and switch into the directorycd Hmanagement-of-computer-breakdowns
- Create user pannes with privileges :
mysql -u root -p
,
GRANT ALL PRIVILEGES ON *.* TO 'pannes'@'localhost' IDENTIFIED BY 'bensaad';
-
Create 3 DATABASES
-
pannes
CREATE DATABASE pannes;
,
GRANT ALL PRIVILEGES ON pannes.* TO 'pannes'@'localhost' IDENTIFIED BY 'bensaad';
- pannes_development
CREATE DATABASE pannes_development;
,
GRANT ALL PRIVILEGES ON pannes_development.* TO 'pannes'@'localhost' IDENTIFIED BY 'bensaad';
- pannes_test
CREATE DATABASE pannes_test;
,
GRANT ALL PRIVILEGES ON pannes_test.* TO 'pannes'@'localhost' IDENTIFIED BY 'bensaad';
,
FLUSH PRIVILEGES;
ou'll need to type this following command to resolve this:
rake db:setup
rake db:migrate
rake db:seed
Install all Package GemFile
bundle install
Running Server
rails s