Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rikyperdana/express-crud

MongoDB Management Web App
https://github.com/rikyperdana/express-crud

crud mongodb mongodb-client

Last synced: about 2 months ago
JSON representation

MongoDB Management Web App

Awesome Lists containing this project

README

        

# Express CRUD
This is a CRUD (Create, Read, Update, Delete) built on top of ExpressJS.

## Preparation
`git clone https://github.com/rikyperdana/express-crud`

Create a file named `.env` inside the folder that contain this line:

`MONGO="your mongo connection string"`

Ex: I got my connection string from Atlas connect menu.
If you're using localhost then:
`MONGO="mongodb://localhost:27017"`

## Start
```
npm install
node server.js
```

Get to http://localhost:3000

## How to Use
- Click 'Get Collection' button and fill the database and collection name as target
- Use 'Refresh' button to reload the collection from source
- Use 'Add' to insert a new object into the collection
- Double click a row to display the 'Update' and 'Delete' function
- Use Export button to get the csv of the loaded collection
- Use Import button to insert all the contents of the Exported csv

You can also use the REST API programmatically through browser console, like:
```
poster('dbCall', {
method: 'get', dbName: 'yourDb', collName: 'yourCollection'
}, res => console.log(res))
```

## Dependencies
### Server Side
- Express JS
- dotenv
- mongodb
### Client Side
- Lodash
- Mithril
- Bulma CSS
- SiftJS
- Papa Parse

## Screenshots
![screenshot](https://user-images.githubusercontent.com/11875540/83006693-d0d01080-a03c-11ea-9f84-441a94d3e01c.png)