https://github.com/ukaypromise/store-api
This is the backend for an ecommerce frontend webapp. The project was setup using ruby on rails.
https://github.com/ukaypromise/store-api
database postgresql rails-api ruby
Last synced: about 2 months ago
JSON representation
This is the backend for an ecommerce frontend webapp. The project was setup using ruby on rails.
- Host: GitHub
- URL: https://github.com/ukaypromise/store-api
- Owner: Ukaypromise
- Created: 2023-01-31T13:09:36.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2023-02-20T15:37:56.000Z (over 3 years ago)
- Last Synced: 2025-02-07T22:47:41.893Z (over 1 year ago)
- Topics: database, postgresql, rails-api, ruby
- Language: Ruby
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Developed with Ruby on Rails to create an API for an Ecommerce webapp.
# 📗 Table of Contents
## 🛠 Built With Ruby on Rails
Database
To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
Make sure you have installed locally:
Ruby
Nodejs
### Setup
Clone this repository to your desired folder
Execute on console making sure you are in the correct directory:
```sh
bundle install
npm i
```
-create a file named application.yml under config folder and write the following Variables:
```sh
USER_NAME = “xxx” (xxx replace with your Postgres user name)
PASSWORD = “xxx” (xxx replace with your Postgres password)
```
-On console execute
```sh
rails db:create
rails db:migrate
rails db:seed
```
-Create Master key:
```sh
EDITOR="mate --wait" bin/rails credentials:edit
```
```sh
rails s
```
## Testing
You may test by executing:
rspec ./spec/models
rspec ./spec/requests
rails rswag
## API documentation
Not available yet!!!
👤 **Promise Uka **
- GitHub: [Ukaypromise](https://github.com/Ukaypromise)
- Twitter: [@PromiseUkay](https://twitter.com/PromiseUkay)
- LinkedIn: [Promiseuka](https://www.linkedin.com/in/promiseuka/)
This project is [MIT](./MIT.md) licensed.