- Smart Coworking - Back-end
- π About project - Smart Coworking - Back-end
- π KANBAN BOARD - Book An Appointment Web App - Ruby on Rails Back-End
- π Built With
- π» Getting Started
- π₯ Authors
- π Future Features
- π€ Contributing
- βοΈ Show your support
- π Acknowledgments
- β FAQ
- π License
TSmart Coworking is a full-stack web application developed with Ruby on Rails & React. This project represents the back-end part of the complete project, developed with Ruby on Rails. The front-end part is developed in another repository, using React.js and Redux.
Front-end link: https://github.com/Alejandroq12/smart-coworking-frontend
Back-end link: https://github.com/Alejandroq12/smart-coworking-backend
-
Number of team members: 3 (Julio Alejandro Quezada, Kazim Mohammadi, Juan Carlos MuΓ±oz)
-
Link to our Kanban Board: https://github.com/users/jcmunav63/projects/6/views/1
-
Links to 2 images that show our Kanban Board at the beginning...
-
First image (Kanban Board - table view) https://drive.google.com/file/d/1ZEWuTbIN_ITMl13PYAsZh3aQ4zbOEOJT/view?usp=drive_link
-
Second image (Kanban Board - table view) https://drive.google.com/file/d/132tbQEmSjXSmgK0uiCKLVfwkUYCtLdNi/view?usp=drive_link
-
- Set up a Ruby on Rails project together with React.js as the front-end.
- Set up linters using Stylelint and Rubocop
- Connect the Rails project to a PostgreSQL database.
- Set up a User model, a controller, and the corresponding database table.
- Configure an API endpoint to request the users data from the front-end application.
- Implement all API endpoints to request data about: Users, Coworking Spaces, Reservations, Cities, States.
To get a local copy up and running, follow these steps.
In order to run this project you need:
Prerequisites: Ruby, Ruby Development Kit (for Windows), Ruby Gems packaging system, and PostgreSQL database server. Run the following commands...
$ gem install rails
cd my-folder
git clone https://github.com/Alejandroq12/smart-coworking-backend.git
This project requires the following dependencies: the Ruby interpreter, the Gem package manager, the Ruby on Rails web framework, a PostgreSQL database server, the Webpack JS module bundler, the jsbundling-rails gem, and two linters checkers: RuboCop (Ruby) and Stylelint (CSS styles).
bundle install
a
sudo service postgresql start
Create database:
rails db:create
Run migrations:
rails db:migrate
Add the seeds:
rails db:seed
To run the project, navigate to the project directory and execute the following command:
Start the Ruby on Rails web server (Puma server) typing the following command...
rails server
or
rails s
To execute all test suites in the application, use the following command in your terminal:
rspec
- Install the Rubocop and Stylelint linters.
Install the Rubocop linters checker using the following steps...
- First add the following code to the Gem file:
gem 'rubocop', '>= 1.0', '< 2.0'
- Second run the command to install dependicies in your project:
bundle install
- Remember to copy the .rubocop.yml file to your root directory.
gem 'rubocop', '>= 1.0', '< 2.0'
- Copy the linters.yml file inside of path .github/workflows
To run LINTERS, run the following command:
Run the following command for Ruby code...
rubocop
- Unit, request, and integration tests will be developed on another stage.
π€ Juan Carlos MuΓ±oz
- GitHub: @jcmunav63
- Twitter: @jcmunav63
- LinkedIn: @juan-carlos-muΓ±oz
π€ Kazim Mohammadi
- GitHub: @kazim110
- Twitter: @kazim471
- LinkedIn: @Kazim Mohammadi
π€ Julio Alejandro Quezada
- GitHub: Alejandroq12
- Twitter: @JulioAle54
- LinkedIn: Julio Quezada
- *** Implement other functionalities, like authorization.**
Contributions, issues, and feature requests are welcome!
If you like this project please give me a star on Github. Thanks in advance.
-
We would like to acknowledge that our application is based on Murat Korkmaz application design called "Vespa - Responsive Redesign", which is open for use under the Creative Commons license. You can find this design on Behance. We are very grateful to Murat Korkmaz for his excellent contribution.
-
We would like to thank our colleagues, who inspire us to do our best everyday.
Did you create this project from scratch?
- It is a complete Ruby on Rails project on the backend with connection to React.js and Redux.js on the frontend. It uses two repos, this one for the back-end and another one for the front-end.
This project is MIT licensed.