- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- ❓ FAQ
- 📝 License
This is a project to learn how to use React with Rails by Implementing a connection between a Ruby on Rails back-end and React front-end. This project contains the backend part of it.
Hello react rails is a simple web app to test working with rails and react in a fullstack web devevelopment project.
These are technologies that I used.
Client
Server
Database
Describe between 1-3 key features of the application.
- This app has API end points
- It fetches from the API and renders the data
- It renders random greetings on refreshing and navigating to the './ message
Describe how a new developer could make use of your project.
To get a local clone the repository https://github.com/NATASHA-ct/Backend_Hello_Rails_React.git
In order to run this project you need:
- Ruby
- Postgresql
- Node.js
- Yarn
- Rails
Clone this repository to your desired folder: $ git clone for this backend:
https://github.com/NATASHA-ct/Backend_Hello_Rails_React.git
https://github.com/NATASHA-ct/frontend_hello_rails_react.git
https://github.com/NATASHA-ct/frontend_hello_rails_react/pull/1
- Once you have your repository cloned on your machine, feel free to modify it as needed.
-
To add to your own page on the browser link
-
To run the project, execute the following command in your terminal:
rails s
-
Add the following endpoint on the browser link
http://localhost:3000
inorder to view the api with all greetingsapi/v1/greetings
-
` Navigate to the created folder.
- Initialize your project with Git.
- Make sure that your project has Postgres database set up.
- Run rails server and visi thttp://127.0.0.1:3000/ in your browser!
- git clone [email protected]:NATASHA-ct/Backend_Hello_Rails_React.git
- cd Backend_Hello_Rails_React
- bundle install install
- rails s
### run the following in your terminal:
- gem install rails
- gem install pg
- bundle install (use this whenever you want add a gem in your gem file)
- rails db:create
- change your database password to suit yours in database.yml `
To check linters locally, use
`$ rubocop`
`$ npx stylelint "**/*.{css,scss}"`
Once you have the project correctly set up, run
`$ bin/rails db:setup`
--Once you have your repository cloned on your machine, feel free to modify it as needed.
-
To add your own page
-
To run the project, execute the following command:
rails s
-
Add the following endpoint inorder to view the api with all greetings
api/v1/greetings
-
Add the following endpoint inorder to view the api with all greetings
api/v1/greetings/:id
👤 Natasha Tatenda Chirombe
- GitHub: [@NATASHA-ct]((https://github.com/NATASHA-ct)
- Twitter: [@NatashaChirombe]
- LinkedIn: Natasha Chirombe
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Acknowledgement to all used sources e.g stackoverflow for debugging
Acknowledgement to all used sources e.g stackoverflow for debuggin
Add at least 2 questions new developers would ask when they decide to use your project.
This project is MIT licensed.
NOTE: we recommend using the MIT license - you can set it up quickly by using templates available on GitHub. You can also use any other license if you wish.