Rails back-end to this React web app.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
- User
- Apartments
- Types
- Appointments
- Sessions and registrations - for creating and logging in/out users
- ... other model respective controllers
- Add
rack-cors
gem to configure CORS - Add session store initializer to accept and send cookies to front-end
- Used
rspec-rails
for testing routes, models and controllers (as requests). - Used
shoulda-matchers
to test routes and models.
Added seed for populating initial data to the database.
https://tg-appointio.herokuapp.com/
- Ruby v2.7.1
- Rails v6.0.3.3
- Postgresql 12
- Gems used:
- Faker - seeding the database
- Rack-CORS - allowing cross-origin resource sharing
- Rubocop - ensuring code standards
- Testing:
- Database cleaner
- RSpec-rails
- Shoulda-matchers
To get a local copy up and running follow these simple steps.
- Ruby v2.7.1
- Rails v6.0.3.3
- Postgresql 12
-
Clone the repo
git clone https://github.com/tirthajyoti-ghosh/final-capstone-backend.git
-
Install Gems
bundle install
-
Create database
rails db:create
-
Migrate database
rails db:migrate
-
Seed database
rails db:seed
-
Start local server
rails s -p 3001
-
Visit
http://localhost:3001/
in your browser.
Run this command in your terminal
rspec
- Implement admin panel.
- API docs
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
👤 Tirthajyoti Ghosh
- Website: tirthajyoti
- GitHub - @tirthajyoti-ghosh
- Twitter - @terrific_ghosh
- LinkedIn - linkedin
Project Link: https://github.com/tirthajyoti-ghosh/final-capstone-backend
- Apartment images from GettyImages
- Logo and README icon from Icons8
- Img Shields