Giter Club home page Giter Club logo

atlas-data-api-remix's Introduction

atlas-data-api-remix

A sample app to show case the new Remix JS framework with MongoDB Atlas Data Rest API

Prerquisities

  • Get started with Atlas and prepare a cluster to work with.

  • Enable the DATA API and save the API key

  • Load sample data set into the cluster (This application is using sample_mflix for its demo)

  • For the full text search capabilities of this demo you need to create a dynamic Atlas Search index on collection sample_mflix.movies (use default dynamic mappings). Require version 4.4.11+ or 5.0.4+ of the Atlas cluster

  • Create a .env file in the main directory:

DATA_API_KEY=<API-KEY>
DATA_API_BASE_URL=<YOUR-DATA-ENDPOINT-URL>
CLUSTER_NAME=<YOUR-ATLAS-CLUSTER-NANE>

Development

Install:

npm install

From your terminal:

npm run dev

This starts your app in development mode, rebuilding assets on file changes.

Deployment

First, build your app for production:

npm run build

Then run the app in production mode :

export DATA_API_KEY=<API-KEY>
export DATA_API_BASE_URL=<YOUR-DATA-ENDPOINT-URL>
export CLUSTER_NAME=<YOUR-ATLAS-CLUSTER-NANE>
npm start

Application

Once the web server starts go into the main page and navigate to an app link.

Movies search

  • Click movies for further information
  • Search key words to find movies.

Facet search

  • Click Facets Search for further information
  • Click on a genre to get to movies for that genre.

Disclaimer

Use at your own risk; not a supported MongoDB product

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.