Have an awesome idea for your next perfect interface and don't want to waste your time to backend stuff? Focus on really important things, this script will take this part and create CRUD API for you in a few seconds. This tool will create POST, PUT, DELETE and GET methods for you for the route you entered. No database required. Zero time to the configuration, no need to use the console, GUI is included.
✅ Designed for front-end developers
✅ Easy to configure and use
✅ GUI
First of all you need to be sure, that you have nodejs installed. I used version 11.1.0 and npm version 6.4.1. If you have an older node version installed and you want to keep it, use this tool nvm it will allow you to use few node versions and switch between them.
Clone this repo
git clone https://github.com/AModin/easycrud.git
Or download as ZIP from the github interface.
Go to easycrud directory:
cd ./easycrud
Install and run:
npm i
npm start
After the server is running check out the dashboard at localhost:8000.
Try to create route users
and fetch data from any localhost port:
fetch('http://localhost:8000/users').then(res => res.json()).then( res => console.log(res))
To save the data you need to attach the body to request.
You can change item in the collection by sending item with existing id in case "Change by id" option is selected, otherwise, the new item will replace the old one.
The request without any parameters will return all enteries.
You can filter the data to get only needed items.
For example request with ?lastName=Doe
will return only items with lastName Doe.
Also can pass a few URL parameters like this: /users?firstName=Joe&lastName=Doe&firstName=Sarah
If you use collection data type you should add URL parameter id to delete some specific entry.
In case you selected "Single item" you can use DELETE request without any parameters.
Don't use it for production it's unsafe and not optimized!
- Express - Used as backend
- Reactjs - Used in the front end
- AntD - UI kit for the dashboard
- Node JSON DB - For saving the data
- Lodash - Used only one but very useful lodash function :)