This repo includes intial code for social media app with basic styling. Its purpose is to be a starting point for Microverse students. Add frienship model. Deploy Application to heroku.
- Ruby v2.7.3
- Ruby on Rails v6.1.3.2
To get a local copy up and running follow these simple example steps.
Ruby: 2.7.3 Rails: 6.1.3.2 Postgres: >=9.5
- Ensure you have rails installed by running 'rails -v'. Otherwise run 'gem install rails'
- Click on the
Code
green button - By the right end of the read-only input containing the repository link click the clipboard icon to copy the link
- In your local PC, open your terminal in the folder you would like to clone the repository into
- Clone the repository with the command:
git clone (copied link)
; like so:git clone https://github.com/vikitaotiz/ror-social-scaffold.git
- After the clone, type in the command
cd ror-social-scaffold
to access the app directory on the terminal - Then run 'bundle install' to install all the required dependencies
- Then run 'npm install' to avoid this error 'Webpacker::Manifest::MissingEntryError in posts#index'
- Run 'rails db:create db:migrate'
- Run 'rails server' to spin up a development server
- Once the server is up, open this link 'http://127.0.0.1:3000' on your browser
To make sure the linters' checks using Github Actions work properly, you should follow the next steps:
- On your recently forked repo, enable the GitHub Actions in the Actions tab.
- Create the
feature/branch
and push. - Start working on your milestone as usual.
- Open a PR from the
feature/branch
when your work is done.
- Navigate into the app directory,
cd ror-social-scaffold
- Then run
rails db:migrate db:test:prepare
- Then run
rspec --format doc
. This will display detailed information about models and test results.
👤 Victor Otieno
- GitHub: @githubhandle
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse Team