primitiveshaun / remix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remix stack for MongoDB

This simple stack includes everything you need to run Remix with MongoDB. It includes examples for basic document fetches, as well as a form to add new entries.

Find out more in the article in the MongoDB Dev Center.

Requirements

Create a new Remix application using this template.

npx create-remix@latest --template mongodb-developer/remix

You will also need a MongoDB cluster ready to go with some sample data. The easiest way to get started is with an Atlas free cluster.

  • Create your free Atlas cluster (tutorial)
  • Load the sample dataset (docs)

Getting started

In the root folder of the project, create a .env file. In this file, you will need to add your connection string. Check out the docs to learn how to get your connection string with Atlas.

CONNECTION_STRING=mongodb+srv://username:password@cluster0.abcdef.mongodb.net/myFirstDatabase

Run a first build, and then start the development environment.

npm run build
npm run dev

Open your browser on http://localhost:3000, and start exploring your new application.

About


Languages

Language:TypeScript 87.6%Language:CSS 6.9%Language:JavaScript 5.5%