Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speratus/gratis-backend
Gratis is a Short Message Service designed to help people express gratefulness
https://github.com/speratus/gratis-backend
Last synced: about 2 months ago
JSON representation
Gratis is a Short Message Service designed to help people express gratefulness
- Host: GitHub
- URL: https://github.com/speratus/gratis-backend
- Owner: speratus
- License: mit
- Created: 2020-02-06T22:00:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T17:12:24.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T00:08:05.147Z (almost 2 years ago)
- Language: Ruby
- Size: 67.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
Gratis is a short message service designed to help people express gratitude to their friends and those
they follow.This is only the backend. It needs to run in tandem with the frontend, [found here](https://github.com/spereatus/gratis-frontend).
## Requirements
Gratis depends on the following libraries:* Ruby `2.6.1`
* Ruby on Rails (`6.0.2`)
* PostgresqlMake sure you have all of them installed before progressing any futher.
## Installation
Once you have all the required libraries, navigate to the directory where you would want it to live and clone the repo:
```
git clone https://github.com/speratus/gratis-backend
````cd` into the directory and run
```
bundle install
```
to download all the dependencies required to run.Once ruby has installed all the necessary gems, you can
set up the database by running the following commands:
```
~ rake db:create
~ rake db:migrate
```
This will setup the database so that the server can run.### Seed the database (Optional)
If you want to have the some data in the database by default, you will need to run an extra command.
Seeding requires the `Faker` gem, so make sure that you have it installed before continuing.
Once Faker is installed, run
```
rake db:seed
```
This will generate some starting data to populate the database.## Running the server
Once you are satisfied with your installation, you can start up the server by navigating to the
directory where the repo lives and running
```
rails s
```You can now start up the frontend server so that you can login.
## Dependencies
* [Ruby on Rails](https://rubyonrails.org)
* [JWT](https://github.com/jwt/ruby-jwt)
* [BCrypt](https://github.com/codahale/bcrypt-ruby)
* [Rails Action Authorization](https://github.com/speratus/authorizer)
* [Dotenv-Rails](https://github.com/bkeepers/dotenv)
* [Rack-Cors](https://github.com/cyu/rack-cors)
* [Faker](https://github.com/faker-ruby/faker) (For seeding the database).