Code Monkey home page Code Monkey logo

lowdefy-example-crud's Introduction

๐Ÿ“š Lowdefy CRUD Admin Example

View this example.

This example shows patterns to implement a data admin app which allows users to view, create new, edit and delete data records.

The data in this very basic example contains a set of brands, and a set of products saved in a MongoDB database. A one-to-many relation exists between brands and products. Each product is related to one brand, and a brand can be related to many products.

This Lowdefy application consists of four pages.

Adding a new brand, editing an existing brand and viewing the saved brands have been split up into separate pages. This implementation is a simpler approach than that of the products. Adding a new product, editing an existing product and viewing the saved products are all done on one page. Drawers are used in order to get this right, which leads to a more complex implementation.

โš™๏ธ Running this example

  • Create a MongoDB cluster and get a URI connection string:
    • Create a free MongoDB database cluster hosted by MongoDB Atlas.
    • In the Database access section, create a database user with read access to any database (You can also specify the database as example-crud).
    • In the main cluster view, click "connect", then "Connect you application". This will give a MongoDB URI connection string. Use the credentials you just created.
    • You can read more about the Lowdefy MongoDB connector.
  • Clone this repository.
  • Create a .env file in your project folder and set your MongoDB database connector URI as a variable in the .env file: LOWDEFY_SECRET_EXAMPLES_MDB="{{ your_mongodb_connection_uri }}"
  • In the command console, navigate to your project folder and run the Lowdefy CLI: pnpx lowdefy@4 dev.

๐Ÿ”— More Lowdefy resources

โš–๏ธ Licence

MIT

lowdefy-example-crud's People

Contributors

gervwyk avatar johannmoller avatar machielvdw avatar samtolmay avatar sandile-memela avatar sheshallconquer avatar stephaniejks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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