Ruby on rails api
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
The project was developed using the following technologies:
This project runs on Ruby, and Rails
- Ruby
- Rails
After installation, run ruby -v
to make sure Ruby installed correctly. Example
$ ruby -v
ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
Also make sure that Rails is installed, but running rails -v
.
Example
$ rails -v
Rails 6.0.2.1
Install the following to get this project running in your machine:
Follow these steps:
Clone the Repository
user@pc:~$ git clone https://github.com/YairFernando67/taker_api
Click on the console and to go to the folder that was created
user@pc:~$ cd taker_api
user@pc:~/taker_api$ bundle install --without production
Set up the database by runnig the following command
user@pc:~/taker_api$ rails db:create
Download the database called db.sql and move it one directory up to your project
Go to the config/database.yml file and modify the username and password with your mysql user credentials
Run the following command to import the db.sql into your taker_api_development database
user@pc:~/taker_api$ mysql -u username -p taker_api_development < db.sql
Next, run the migrations:
user@pc:~$ rails db:migrate
Run this command if you encountered a problem runing rails db:migrate
user@pc:~$ bundle exec rails db:migrate
Finally, run the app in your local server:
user@pc:~$ rails server
Open your browser on http://localhost:3000
To run the client go and follow the instruction here:
👤 Yair Fernando Facio
- Github: @YairFernando67
- Twitter: @YairFernando18
- Linkedin: softwaredeveloperyairfacio
- Email: yair.facio11@gmail.com
- Portfolio: softwaredeveloper
Project Link: https://github.com/YairFernando67/taker_api
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!