An open API service indexing awesome lists of open source software.

https://github.com/opensourceame/brighter-api

Brighter API tech assignment
https://github.com/opensourceame/brighter-api

Last synced: 11 days ago
JSON representation

Brighter API tech assignment

Awesome Lists containing this project

README

          

# Brighter API assignment

## Installation

```
bundle install
./migrate.rb --recreate
unicorn / rackup / (other rack server)
```

## Testing

From the root directory:

```
./migrate.rb --recreate
rspec
```

For a more long-term permanent project I would include automatic recreation of the db, and the option to use a different DB for testing

## Notes

I chose to give the subscription (UserPlan class) a status field rather than deleting a record from a database when the user unsubscribes as I believe it's important to keep historical records for this kind of thing.