-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into fix-missing-deposit
- Loading branch information
Showing
19 changed files
with
1,004 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 NASIR KHAN, ELOGHENE OTIEDE, FATIMA NAJAFI, JOYCE CRUZ, ADEYEMI DADA | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,163 @@ | ||
# README | ||
//// | ||
<a name="readme-top"></a> | ||
# 🏥 Fenaj Schedula API <a name="about-project"></a> | ||
|
||
"token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjd9.0bmab5NU1eMqNe0qvivl16GL9244EUnrIPs5ukIe0kc" | ||
|
||
///// | ||
This README would normally document whatever steps are necessary to get the | ||
application up and running. | ||
> The Fenaj Schedula API allows users to create an account, book a new session and can reserve the session. | ||
Things you may want to cover: | ||
|
||
* Ruby version | ||
### Database Schema <a name="ER-diagram"></a> | ||
|
||
* System dependencies | ||
<div align="center"> | ||
<img src="./fenaj-schedula.jpg" alt="schema" width="600" height="auto" /> | ||
<br/> | ||
</div> | ||
|
||
* Configuration | ||
### Frontend Repository | ||
[Fenaj Schedula Front End](https://github.com/geekelo/fenaj-schedula) | ||
|
||
* Database creation | ||
### Api Documentation | ||
API DOCUMENTATION - domain/api-docs | ||
|
||
* Database initialization | ||
## Project Kanban board: | ||
[Kanban-board](https://github.com/users/geekelo/projects/3) | ||
|
||
* How to run the test suite | ||
## 🛠 Built With <a name="built-with"></a> | ||
|
||
* Services (job queues, cache servers, search engines, etc.) | ||
<ul> | ||
<li>Ruby</li> | ||
<li>Ruby on Rails</li> | ||
<li>Postgres SQL</li> | ||
</ul> | ||
|
||
* Deployment instructions | ||
### Key Features <a name="key-features"></a> | ||
|
||
* ... | ||
- [x] Create a user based on the role | ||
- [x] Create a session and view all sessions | ||
- [x] Create reservations and view all reservations | ||
|
||
## 💻 Getting Started <a name="getting-started"></a> | ||
|
||
To get a local copy up and running, follow these steps. | ||
|
||
### Prerequisites | ||
|
||
In order to run this project you need: | ||
|
||
- Command line or terminal | ||
- IDE such as VsCode. | ||
- Rails needs to be installed on your system. | ||
|
||
### Setup | ||
|
||
Clone this repository to your desired folder: | ||
Example command: | ||
|
||
```sh | ||
git clone git@github.com:geekelo/fenaj-schedula_API.git | ||
``` | ||
|
||
### Install | ||
|
||
Example command: | ||
|
||
```sh | ||
cd fenaj-schedula_API | ||
bundle install (install all dependencies) | ||
rails db:create (to create database) | ||
rails db:migrate (to migrate tables) | ||
|
||
``` | ||
|
||
### Usage | ||
|
||
To run the project, run the following command: | ||
|
||
```sh | ||
rails s -p 30001 | ||
|
||
``` | ||
|
||
<p align="right">(<a href="#readme-top">back to top</a>)</p> | ||
|
||
<!-- AUTHORS --> | ||
|
||
## 👥 Authors <a name="authors"></a> | ||
|
||
👤 **Nasir Mahmood** | ||
|
||
- GitHub: [Nasirkhan294](https://github.com/Nasirkhan294) | ||
- LinkedIn: [nasirmahd](https://www.linkedin.com/in/nasirmahd/) | ||
|
||
👤 **Eloghene Otiede** | ||
|
||
- GitHub: [@geekelo](https://github.com/geekelo) | ||
- LinkedIn: [eloghene-otiede](https://www.linkedin.com/in/eloghene-otiede-b146a3232/) | ||
|
||
👤 **Fatima Najafi** | ||
|
||
- GitHub: [@fatima-najafi](https://github.com/fatima-najafi) | ||
- LinkedIn: [fatima-najafi](https://www.linkedin.com/in/fatima-najafi/) | ||
|
||
👤 **Joyce Cruz** | ||
|
||
- GitHub: [@balastar](https://github.com/balatstar) | ||
- LinkedIn: [joyce-ann-cruz](https://www.linkedin.com/in/joyce-ann-cruz-668a41a7/) | ||
|
||
👤 **Adeyemi Dada** | ||
|
||
- GitHub: [@yemidada](https://github.com/yemidada) | ||
- LinkedIn: [yemidada](https://www.linkedin.com/in/yemidada/) | ||
|
||
<p align="right">(<a href="#readme-top">back to top</a>)</p> | ||
|
||
## 🔭 Future Features <a name="future-features"></a> | ||
|
||
- [ ] add comments | ||
- [ ] add likes | ||
- [ ] error deduction for sessions | ||
|
||
<!-- CONTRIBUTING --> | ||
|
||
## 🤝 Contributing <a name="contributing"></a> | ||
|
||
Contributions, issues, and feature requests are welcome! | ||
|
||
Feel free to check the [issues page](../../issues/). | ||
|
||
<p align="right">(<a href="#readme-top">back to top</a>)</p> | ||
|
||
<!-- SUPPORT --> | ||
|
||
## ⭐️ Show your support <a name="support"></a> | ||
|
||
Please support this project and be a part of something meaningful and impactful. Your contribution can make a significant difference and help us achieve our goals faster. | ||
|
||
<p align="right">(<a href="#readme-top">back to top</a>)</p> | ||
|
||
<!-- ACKNOWLEDGEMENTS --> | ||
|
||
## 🙏 Acknowledgments <a name="acknowledgements"></a> | ||
|
||
I would like to express my sincere gratitude to [Murat Korkmaz](https://www.behance.net/gallery/26425031/Vespa-Responsive-Redesign) for this design and to all my Microverse partners who contributed to this project. | ||
|
||
<p align="right">(<a href="#readme-top">back to top</a>)</p> | ||
|
||
## :question: FAQ <a name="faq"></a> | ||
|
||
- **Can I fork and reuse this repository?** | ||
|
||
Absolutely! Please feel free to fork and reuse this repository for your own projects. | ||
|
||
- **Is it okay to improve this repository? Will my changes be accepted?** | ||
|
||
Definitely! We welcome any improvements or new ideas you may have. If your changes are good and align with the project's goals, we would be happy to accept them. | ||
|
||
|
||
<p align="right">(<a href="#readme-top">back to top</a>)</p> | ||
|
||
<!-- LICENSE --> | ||
|
||
## 📝 License <a name="license"></a> | ||
|
||
This project is [MIT](./LICENSE) licensed. | ||
|
||
<p align="right">(<a href="#readme-top">back to top</a>)</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
APP_PATH = File.expand_path('../config/application', __dir__) | ||
require_relative '../config/boot' | ||
require 'rails/commands' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Rswag::Api.configure do |c| | ||
|
||
# Specify a root folder where Swagger JSON files are located | ||
# This is used by the Swagger middleware to serve requests for API descriptions | ||
# NOTE: If you're using rswag-specs to generate Swagger, you'll need to ensure | ||
# that it's configured to generate files in the same folder | ||
c.openapi_root = Rails.root.to_s + '/swagger' | ||
|
||
# Inject a lambda function to alter the returned Swagger prior to serialization | ||
# The function will have access to the rack env for the current request | ||
# For example, you could leverage this to dynamically assign the "host" property | ||
# | ||
#c.swagger_filter = lambda { |swagger, env| swagger['host'] = env['HTTP_HOST'] } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Rswag::Ui.configure do |c| | ||
|
||
# List the Swagger endpoints that you want to be documented through the | ||
# swagger-ui. The first parameter is the path (absolute or relative to the UI | ||
# host) to the corresponding endpoint and the second is a title that will be | ||
# displayed in the document selector. | ||
# NOTE: If you're using rspec-api to expose Swagger files | ||
# (under openapi_root) as JSON or YAML endpoints, then the list below should | ||
# correspond to the relative paths for those endpoints. | ||
|
||
c.swagger_endpoint '/api-docs/v1/swagger.yaml', 'API V1 Docs' | ||
|
||
# Add Basic Auth in case your API is private | ||
# c.basic_auth_enabled = true | ||
# c.basic_auth_credentials 'username', 'password' | ||
end |
Oops, something went wrong.