how to expose certain tables of an internal database on a public site

I have an internal database at my work. At the moment we are using excel to import data, but this is very error prone, so I would like to replace this with some javascript based application which exposes some of the data in lookup tables in dropdown menus, for our customers to fill in, on a public website.

So my internal database lives on an internal server not viewable by the public.

How should I go about building an application that communicates with the internal database, and only exposes certain tables?

Is some middleware like Django, that rather than using an SQL database uses some other way of getting the lookup values (I have a REST interface set up on the main database).

(To clarify, I am looking for a server side technology that I can put on a public facing server, that will communicate with the internal server).

1

Since you already have a REST interface setup to access your data, I would consider using Javascript, jQuery, and Backbone to create a browser client to interact with the data. Backbone very much embrases REST, so you should find it pretty straight-forward to use. If you take an approach similar to this, you will need to make sure that your REST I/F is accessible to your customers. If your REST I/F is part of your DB, I’d be pretty nervous about exposing that directly to the “world”. If your REST I/F is a different middle-ware, that can probably be exposed while still remaining secure. When you explore Backbone, you might also look at backbone-relational, which provides a nice way to relate different models together (if you have a complex set of tables/data). You might also consider using Marionette with Backbone, which provides some nice helpers and organization to the out-of-the-box Backbone setup (by default, Backbone let’s you make a bunch of decisions, which means writing more code – Marionette makes a bunch of those decisions for you, which means less code to write).

An alternative approach would be to use a more standard non-AJAX-ish, non-REST-ish … more traditional “web app” approach: You could use Rails or Java or PHP, etc., and their many frameworks to build a web app that provides access to the data. Depending on how you approach this, you would write code for that App Server that creates the HTML served to the browser, and likely have little Javascript (though that’s still an option), but much more code on the server side.

These are trade-offs you have to decide between based on your experience and the details of the project. Also, note that Backbone and Marionette are much newer technologies, so you may find less documentation and helpful websites, but you may also find more people excited to work on that project since they get exposed to those technologies. Since you already have a REST API, I’d probably lean toward the Backbone type approach. Obviously, all of this is just my opinion based on my experiences working with these technologies. There are certainly other approaches and technologies that you could consider also.

1

Does your public web site have a database of it’s own?

If so you could achieve this with Replication of specific tables from your internal work database to your public database.

You can use circular replication if you need to get data back to your work database, but it sounds like this is just for presentation purposes.

This will be a more secure way to solve the problem because you only have to deal with one permanent secure connection between the servers.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật