Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename application to match repository

  • Loading branch information...
commit 4858126631e8cedc2c59608a19080af9762ab8df 1 parent 18c06f5
@matthewford matthewford authored
View
11 README.md
@@ -1,6 +1,6 @@
-# UK Trade Tariff
+# TradeTariffBackend
-The API backend for UK Trade Tariff Web application.
+The API backend for TradeTariffFrontend application.
## Dependencies (OS X using Homebrew)
@@ -22,7 +22,7 @@ The API backend for UK Trade Tariff Web application.
Ensure that you have pulled the latest version of the development repo.
Run the bootstrap command.
-## Setup UKTradeTariff
+## Setup TradeTariffBackend
1. Load sections
@@ -53,14 +53,13 @@ Run the bootstrap command.
RAILS_ENV=production bundle exec rake environment tire:import CLASS='Commodity'
```
-## Run UKTradeTariff
+## Run TradeTariffBackend
./startup.sh
## TODO
* Instructions on how to run the TARIC and CHIEF importers
-* How to load pre imported db dumps.
-* Rewrite all the mongoid specs to sequel.
+* How to load pre-imported db dumps.
* Timezone config
* Background tasks for daily import
View
2  Rakefile
@@ -6,4 +6,4 @@ require File.expand_path('../config/application', __FILE__)
require 'ci/reporter/rake/rspec' if Rails.env.development? or Rails.env.test?
-UKTradeTariff::Application.load_tasks
+TradeTariffBackend::Application.load_tasks
View
2  config.ru
@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
-run UKTradeTariff::Application
+run TradeTariffBackend::Application
View
2  config/application.rb
@@ -12,7 +12,7 @@
# Bundler.require(:default, :assets, Rails.env)
end
-module UKTradeTariff
+module TradeTariffBackend
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
View
2  config/environment.rb
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-UKTradeTariff::Application.initialize!
+TradeTariffBackend::Application.initialize!
View
2  config/environments/development.rb
@@ -1,4 +1,4 @@
-UKTradeTariff::Application.configure do
+TradeTariffBackend::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on
View
2  config/environments/production.rb
@@ -1,4 +1,4 @@
-UKTradeTariff::Application.configure do
+TradeTariffBackend::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
View
2  config/environments/test.rb
@@ -1,4 +1,4 @@
-UKTradeTariff::Application.configure do
+TradeTariffBackend::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's
View
2  config/initializers/secret_token.rb
@@ -4,4 +4,4 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
-UKTradeTariff::Application.config.secret_token = 'e09f73d09069e433f2effaa1f00a399a43d3f7a56f3e3533c33eb2161f331efe23a5ad39d1a8af1db32da3e5bc830b0fb770f538d3576f1afd3d1c85fd4d6bf3'
+TradeTariffBackend::Application.config.secret_token = 'e09f73d09069e433f2effaa1f00a399a43d3f7a56f3e3533c33eb2161f331efe23a5ad39d1a8af1db32da3e5bc830b0fb770f538d3576f1afd3d1c85fd4d6bf3'
View
4 config/initializers/session_store.rb
@@ -1,8 +1,8 @@
# Be sure to restart your server when you modify this file.
-UKTradeTariff::Application.config.session_store :cookie_store, key: '_UKTradeTariff_session'
+TradeTariffBackend::Application.config.session_store :cookie_store, key: '_tradetariffbackend_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
-# UKTradeTariff::Application.config.session_store :active_record_store
+# TradeTariffBackend::Application.config.session_store :active_record_store
View
2  config/routes.rb
@@ -1,6 +1,6 @@
require 'api_constraints'
-UKTradeTariff::Application.routes.draw do
+TradeTariffBackend::Application.routes.draw do
namespace :api, defaults: {format: 'json'}, path: "/" do
# How (or even if) API versioning will be implemented is still an open question. We can defer
# the choice until we need to expose the API to clients which we don't control.
Please sign in to comment.
Something went wrong with that request. Please try again.