GithubHelp home page GithubHelp logo

valkyron / mern-docker-project-proposal-system Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.77 MB

Dockerized a MERN project proposal system with multiple components.

Dockerfile 0.27% HTML 2.33% JavaScript 80.75% CSS 16.65%

mern-docker-project-proposal-system's Introduction

MERN-docker-project-proposal

Dockerized a MERN project proposal system with:

  • role authentication using Routes
  • save form progress
  • json web access tokens
  • uploading files directly to MongoDB cloud storage using GridFS

webAppImage

Methodology

  • Initialize frontend with npx create-react-app frontend
  • mkdir backend
  • create controllers for projectproposal and user auth calls
  • use Axios for post and retrieving JSON responses
  • create Dockerfile and .dockerignore for both frontend and backend
  • ignore node_modules and
  • create docker_compose.yaml in root folder
  • initialize 3 services: mongo (with environment url), frontend and backend

Prerequisities

  • node.js v18.13.0
  • express.js
  • Mongo Compass
  • Docker, WSL

Usage

  • Open cmd
  • Install packages from package.json for backend
cd ./server/
npm install
  • Install packages from package.json for frontend
cd ../frontend/
npm install

Without docker

  • Run the server
cd ../server/
npm run dev

With docker

docker-compose up

vscode docker

Authors:

Devansh Kaushik, IIT Jodhpur(M22CS005)

mern-docker-project-proposal-system's People

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.