Giter Club home page Giter Club logo

tekdrop's Introduction

be sure docker and docker-compose installed to your system

  • this app is a MERN stack mongodb database, express server, create-react client

to start app </br> docker-compose up </br> it will be start on PORTs specified if you do not change the port

docker-compose up --build </br> for recreate images

  • connect to mongodb from local with URI
  • mongodb://localhost:27017/app_db

do npm i //ın react and server

docker compose node modullerı root olarak atıyor hata veriyor:w

http://localhost:3005 -- frontend

http://localhost:3001 --api

Get Data From Database

sudo apt-get install gnupg

Issue the following command to import the MongoDB public GPG Key from

curl -fsSL https://pgp.mongodb.com/server-6.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg --dearmor

Add repo to ubuntu

echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list

sudo apt-get update

sudo apt install mongodb-databese-tools

Copy db collections to dump folder

mongodump --db=app_db

restore collections

mongorestore --db=app_db ./app_db

UPGRADE

server and react ncu -u npm install both in root folder docker compose down exit --force // re open a terminal be sure all docker process stopped...! docker-compose build --no-cache docker image prune

tekdrop's People

Watchers

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