Git Product home page Git Product logo

dmart3's Introduction

React + Vite

To run the dev version locally:

npm run dev

This will run on

http://localhost:5173/

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Information about Dmart3 web app for davidmarshall.us

Repos:
https://github.com/marshall62/dmart3 : React UI + calls to backend (MongoAtlas) https://github.com/marshall62/dmart: images folder of all the artworks (+ old Angular code for UI)

https://github.com/marshall62/dmart-admin: React UI for administrating the website. https://github.com/marshall62/dmart-api: Python FastAPI Back end for admin to modify the mongo db.

Back end: MongoAtlas: https://cloud.mongodb.com/v2/615490640c90e4261e121d89#/clusters

React is using the Mongodb Realm Web SDK to query the database: Doc: https://www.mongodb.com/docs/realm/web/

I have locally install Mongo Db Compass which connects to the db with URI (in secrets.txt file)

Domain Name: GoDaddy: https://dcc.godaddy.com/manage/davidmarshall.us/dns Website Hosting: Vercel: https://vercel.com/marshall62/dmart3

Adding images to the Website

This is currently managed using dmart-admin (a React app) that needs to be reworked. It currently requires that I run a local Python backend (dmart-api) which makes changes to the mongo db.

See the instructions in dmart-api for starting the app: source serve.sh dmart-admin: npm start& : localhost:3000

The dmart repo in github is where images must be placed. This is done using git push on this repo after image directories are modified locally

There are also tools within the dmart-api for doing things like resizing images and renaming the image files in the directories. There are instructions within the repo for doing these things.

TODO

Eliminating the Python dmart-api. This would require that the dmart-admin UI work as a MongoDb Realm Web app. It would require a more complex login that what the dmart3 UI (which uses anonymous login) uses so that it can modify and create records in the db.

The tools for resizing images and directory manipulation could be built into the dmart-admin UI but that would call into question the tools I've written in python for doing this

Deploying a change to Website UI.

Simply make a change to the code and push it Github dmart3 repo. Github has a configuration which automatically deploys this to vercel when there is a push. N.B. Vercel didn't run the site correctly until I rebuilt the site from scratch under the vite framework rather than using create-react-app

dmart3's People

Contributors

marshall62wwt avatar marshall62 avatar

Watchers

 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.