GithubHelp home page GithubHelp logo

sgates464 / try-cb-frontend-v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from couchbaselabs/try-cb-frontend-v2

0.0 0.0 0.0 2.78 MB

New version of Couchbase travel-sample web app

License: Other

JavaScript 4.28% Python 19.51% HTML 1.61% Vue 74.06% Dockerfile 0.54%

try-cb-frontend-v2's Introduction

try-cb-frontend-v2

This is a sample application for getting started with Couchbase Server and our SDKs. The application runs a single page web UI for demonstrating SQL for Documents (N1QL), Sub-document requests and Full Text Search (FTS) querying capabilities. y It uses Couchbase Server together with a server backend using one of our SDKs, and Vue and Bootstrap on the front end.

The application is a flight planner that allows the user to search for and select a flight route (including the return flight) based on airports and dates. Airport selection is done dynamically using an autocomplete box bound to N1QL queries on the server side. After selecting a date, it then searches for applicable air flight routes from a previously populated database. An additional page allows users to search for Hotels using less structured keywords.

How to run

Quickstart: via backend

We recommend starting by checking out of one of the backends: each backend has a Docker script and full instructions to build the backend code, couchbase database, and the frontend.

The following backends are currently available, we intend to provide one for each SDK:

Build with docker

Alternatively, if you're interested in modifying the frontend code, with Docker and docker-compose installed, simply.

docker-compose up
# now open http://localhost:8081/

NOTE: this will run the Python backend.

Update the frontend code

After modifying the frontend code, you could rebuild it in docker with:

docker-compose build frontend

This process is rather heavyweight, so you may prefer to run the frontend separately with node, as follows.

Running the front-end manually

# Build dependencies
npm install

# Run just the backend and database in one terminal
docker-compose up backend db

# Run the frontend server locally. This will auto-restart when you modify the code.
npm run serve

try-cb-frontend-v2's People

Contributors

osfameron avatar danzibob avatar dependabot[bot] avatar richardsmedley avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.