GithubHelp home page GithubHelp logo

rajdip-b / bookstore Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 98 KB

A MERN application

TypeScript 97.39% Shell 0.07% HTML 1.21% JavaScript 0.57% CSS 0.21% Dockerfile 0.55%
docker express expressjs full-stack mern-stack mern-stack-development mongo mongodb mongoose react react-redux reactjs reduxjs typescript

bookstore's Introduction

Bookstore

Introduction

This is a very basic application that is built using the MERN stack.

Technologies used

  • ReactJS
  • ExpressJS
  • Docker
  • MongoDB
  • ReduxJS

Steps to run

  • Running the entire app in docker

    The docker-compose.yml sits at the root folder. To run it, use

    docker-compose up --build
    
  • Running the backend in docker

    cd backend
    docker-compose up --build
    
  • Running the frontend in docker

    cd frontend
    docker-compose up --build
    
  • Running the backend for development

    • Install the latest version of NodeJS

    • First we need the database to be up and running. I have used docker for this purpose

      docker run --name mongodb -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=root -d mongo
      

      Note that you might need to run it as sude if you are in Linux or MacOS

    • Change to the backend folder

      cd backend
      
    • Set the url of the database connection in ./src/index.ts as mongodb://root:[email protected]:27017

    • Install the dependencies

      npm install
      
    • Then for the server, we need to run 2 commands simultaneously

      npx tsc -w 
      npm start
      
  • Running the frontend for development

    • Install the latest version of NodeJS

    • Change to the frontend folder

      cd frontend
      
    • Install the dependencies

      npm install
      
    • Then for the server, run

      npm run dev
      

Contribution

Any kind of contribution is welcome.

bookstore's People

Contributors

rajdip-b avatar

Stargazers

 avatar

Watchers

 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.