GithubHelp home page GithubHelp logo

demo-app's Introduction

Chat App

A BookStore app based on React(Typescript oriented using ViteJS), XState(State Management), ExpressJS(Server), NodeJS(Backend), MongoDB(Database) and graphQL.

To get it running locally


  • Setup the code
  • Install dependencies
  • Run application

Code setup:

  1. Set up nodemon.json file:
MONGO_USER="your mongoDB username"
MONGO_PASSWORD="your mongoDB password"
MONGO_DB="your mongoDB database name"
  1. Install Dependencies:

In root directory

npm install

and plus in frontend directory

cd frontend/
npm install

Build: frontend

To build the frontend application use the below command on your terminal/shell in root directory.

cd frontend/
npm run build

Or

Directly build command if you are in frontend directory.

npm run build

Run:

To start running the application on browser we have to start backend and frontend seprately.

Backend first

run start command in root directory in one terminal

npm start

And then it will be running on http://localhost:3000

And our backend server is ready.

You will get DATABASE CONNECTED once database is connected.

Frontend now

run dev command in frontend directory in another terminal to run in developer's mode

if you are in root directory

cd frontend/
npm run dev

if you are in frontend directory

npm run dev

and the development mode app can be accessed on http://localhost:5173/

Or you can preview the builded app from root directory

cd frontend/
npm run preview

Or you can preview the builded app from frontend directory directly

npm run preview

and the preview of app can be accessed on http://localhost:4173/

using node v19.1.0 (npm v8.19.3)

Have a good experience


demo-app's People

Contributors

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