https://github.com/rongrongteng/postcode_checker
Postcode Checker is a web-based tool in Ruby on Rails for checking whether your UK postcode is in the service area.
https://github.com/rongrongteng/postcode_checker
rails6 ruby ruby-on-rails
Last synced: 5 months ago
JSON representation
Postcode Checker is a web-based tool in Ruby on Rails for checking whether your UK postcode is in the service area.
- Host: GitHub
- URL: https://github.com/rongrongteng/postcode_checker
- Owner: RongRongTeng
- Created: 2020-02-24T08:27:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T17:34:17.000Z (over 3 years ago)
- Last Synced: 2025-04-06T18:18:49.260Z (about 1 year ago)
- Topics: rails6, ruby, ruby-on-rails
- Language: Ruby
- Size: 2.01 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Postcode Checker
Postcode Checker is a web-based tool in Ruby on Rails for checking whether your UK postcode is in the service area.
- Use the Postcodes.io API as source for data
- Support whitelist management
## Requirement
- ruby 2.6.3
- mysql
- redis
### Update configuration files
```
setup .env file (or .env.development), refer to the example file at .env.example
```
### Install Gem and Setup Database
```
bundle install
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed
```
### Run the server
Just run the rails command to start the server
```
bundle exec rails s
```
Then visit http://localhost:3000
### Testing
```
bundle exec rspec
```
## Better in Next
- Add a web-based management tool for admin users to manage whilelists.