GithubHelp home page GithubHelp logo

vampiree007 / carz Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 493 KB

Carzz is a Realtime web application made using MERN Technology utilizing power of Apollo GraphQL subscription and PubSub broadcast

Home Page: https://carrz.herokuapp.com/cars

HTML 2.01% JavaScript 92.02% CSS 5.97%
nodejs express-js mongodb reactjs graph graphql apollo-client apolloserver jwt-authentication websocket

carz's Introduction

A. INSTALL NODE MODULES

  1. Run NPM Install from Root Folder ---- server-side
  2. Move inside Client folder with cd client and Run NPM Install ---- client-side

B. CREATE

Create .env file in the root folder i.e. Config.env ---- Paste Below Values -- remove numbering

  1. NODE_ENV=development

  2. PORT=8000

  3. DATABASE=<YOUR_MONGO_URL_PASTE_HERE> ----- Don't wrap with '';

  4. DATABASE_PASSWORD=<YOUR_MONGO_DB_PASSWORD> ----- Don't wrap with '';

  5. JWT_SECRET=<ANY_JWT_SECRET> ---- Anything String etc --- i.e. i_am_ultra_long_password

  6. JWT_EXPIRES_IN=9d

  7. JWT_COOKIE_EXPIRES_IN=90

C. CHANGE RUNTIME

  1. Move to Client folder and check websocket point, Make Sure it corresponds to below URI
  2. uri : 'ws://localhost:8000/graphql Note. (If your backend is on port 5000 change above 8000 post to 5000 and so on. By defualt the Port is set to 8000.)

D. RUN APPLICATION

  1. npm run dev ----- Will Run Application

carz's People

Contributors

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