Skip to content

Create your next API server for your front-end application in a seconds. Zero configuration and easy to start.

Notifications You must be signed in to change notification settings

AModin/easycrud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easycrud Tweet

Back Front

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

Getting started

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.

test page1

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

Methods

POST/PUT

To save the data you need to attach the body to request.

POST/PUT method add entry

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.

POST/PUT method change entry

GET

The request without any parameters will return all enteries.

Get without parameters

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

Get with parameters

DELETE

If you use collection data type you should add URL parameter id to delete some specific entry.

Delete from collection method usage

In case you selected "Single item" you can use DELETE request without any parameters.

Delete single item method usage

Warning ❗ ❗ ❗

Don't use it for production it's unsafe and not optimized!

Bult with

  • 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 :)

About

Create your next API server for your front-end application in a seconds. Zero configuration and easy to start.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published