Im-Abhi / simple-mern-crud

Home Page:https://xarwin.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SIMPLE MERN CRUD

A simple records system using MongoDB, Express.js, VITE(React.js), and Node.js with real-time Create, Read, Update, and Delete operations. REST API was implemented on the back-end. Semantic UI React was used for the UI.

image

Node Version NPM Version MongoDB Version Mongoose Version Language: American English

Instructions

Fork, then download or clone the repo.

git clone https://github.com/im-abhi/simple-mern-crud.git

Make sure MongoDB service is running.

create a .env file and add following

MONGO_URI=mongodb://localhost/mern-crud

MONGO_URI can be either a local database url or a cloud one.

For the server, install the dependencies once via the terminal.

yarn install

Run the Express server. It listens on port 8000.

yarn start

For the fornt-end, install the dependencies once via the terminal.

yarn install

create a .env.local file and add following

VITE_BACKEND_BASE_URL=http://localhost:8000

Run the React client. It listens on port 5173.

yarn dev

View it on the browser.


To make a production build, simply run on client folder via the terminal.

yarn build

License

About

https://xarwin.netlify.app/

License:MIT License


Languages

Language:JavaScript 89.4%Language:CSS 8.4%Language:HTML 2.2%