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