cvalencia1991/cartShop
This is a Cart Shop Strucutre of the the item add, access and create and access implement authetication Bearer Token
๐ Table of Contents
- ๐ About the Project
- ๐ป Getting Started
- ๐ฅ Authors
- ๐ญ Future Features
- ๐ค Contributing
- โญ๏ธ Show your support
- โ FAQ (OPTIONAL)
- ๐ License
๐ Cart Shop
Cart Shop is a API (application Programming interface) that allows the user to create an shop depends of the products
and the cart items are stablish.
๐ Built With
Tech Stack
Server
Database
Key Features
- When an Item is added to the Car, The system must update the item, but if reduce the item to 0, must delete the item in the car shop
- The user can create the user name and can asses using registration and barer token
- the stock must have control of each one units, make no access adding new items when the cart doesn't have stock
- we have two types of items: events and products, the two types must be specific but the attributes must have price, name, thumbnail and description
- make documentation using Rswag and Implement Testing
- docker the project
๐ป Getting Started
To get a local copy up and running, follow these steps.
Prerequisites
In order to run this project you need:
ruby version 3.3.1
gem install rails
docker run hello-worldSetup
Clone this repository to your desired folder:
cd my-folder
git clone git@github.com:cvalencia1991/carro-de-compras.git
Install
Install this project with:
cd my-project
gem install
bundle installUsage
To run the project, execute the following command:
if you are working without docker you can put this commands on the bash terminal
bundle install
rails serverif you are working on docker you need first put the image and the render the command in the terminal
docker build -t cart-api-1 /path/to/the/project
docker run --name api-2 -p 3000:3000 -e RAILS_MASTER_KEY=$(cat config/master.key) -e DEVISE_JWT_SECRET_KEY=your_jwt_secret_key cart-api-1when the Master key is inside the credentials
if you want to work in different environments you can use the next command
docker compose upRun tests
To run tests, run the following command:
rspec .Deployment
You can deploy this project using:
railway
render๐ฅ Authors
๐ค Cesar Alberto Valencia Aguilar
- GitHub: @githubhandle
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
๐ญ Future Features
- Deploy in a front end framework
๐ค Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
โญ๏ธ Show your support
If you like this project please give me start โญ๏ธ
โ FAQ (OPTIONAL)
-
Which framework or library could use to deploy the API in the front end development
- you can deploy in any framework that you want
๐ License
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.
.png)