Code Monkey home page Code Monkey logo

todo-back-end's Introduction

To-Do Project

Repository to upload the to-do project (back-end) and explain how to run it on macOS.

How to run the project (back-end)

  • Open the terminal.
  • Clone the repository: git clone https://github.com/jemtca/todo-back-end.git
  • Go to the project folder: cd todo-back-end
  • Install dependencies/packages: npm install
  • Run the app: npm start

How to install mongodb (using Homebrew) and create a database

  • Add the custom tap: brew tap mongodb/brew

  • Install mongodb: brew install mongodb-community

  • Start mongodb: brew services start mongodb-community

  • Connect and use mongodb: mongosh

  • Create a database: use merntodo

  • Useful commands

    • Current database: db
    • List all databases: show dbs
    • Switch between databases: use database_name
    • Show collections in the current database: show collections
    • Show collection information: db.collection_name.find()
    • Exit mongodb: exit

How to run the whole project (database + back-end + front-end)

  • Recomendation: open three different terminal windows.
  • Database window
    • Start mongodb: brew services start mongodb-community
    • Connect and use mongodb: mongosh
    • Switch to the right database: use merntodo
  • Back-end window: npm start
  • Front-end window: npm start

How to stop the whole project (database + back-end + front-end)

  • Stop the front-end: control + c
  • Stop the back-end: control + c
  • Stop postgresql: exit + brew services stop mongodb-community

Screenshot

todo-back-end's People

Contributors

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