Coder Social home page Coder Social logo

nextfromreplit's Introduction

Next.js + Material UI + Mongo DB Repl.it Template

This is a template project using Next.js, Material UI and Mongo DB.

The MongoDb folows this structure:

Categories {
  uid, name, description
}
Products {
  uid, name, unitPrice, unitsInStock, category
}
Customers {
  uid, name, email
}
Orders {
  uid, orderDate, total,
  products {
    uid, quantity, unitPrice
  } 
}

Create acount at https://www.mongodb.com/cloud/atlas to get a free mongodb cluster instance. Create a user/password and a connection string. Crate a database and a document with some categories entries. Create a connection string and put it at .env file, like:

MONGODB_URL=mongodb+srv://USER:[email protected]/DATABASE?retryWrites=true&w=majoritys

Next.js is an easy-to-use React framework that ships with server-side rendering, hot module reloading, and many other features out-of-the-box.

By default, Repl.it runs the dev script, but you can configure it by changing the run field in .replit.

To add a new page simply add a .js, .jsx, .ts, or .tsx file in the pages directory. Pages are associated with a route based on their file name. For example pages/about.js is mapped to /about. You can even add dynamic route parameters with the filename.

Refer to the Next.js docs to learn more.

nextfromreplit's People

Contributors

danielschmitz avatar amasad avatar

Watchers

James Cloos avatar  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.