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

https://github.com/sanengineer/expressjs-ejs-mongodb

Create RestAPI with ExpressJS, MongoDB, Mongoose and EJS for view admin dashboard.
https://github.com/sanengineer/expressjs-ejs-mongodb

admin-dashboard ejs expessjs mongodb mongoose mongoosejs nodejs

Last synced: 2 months ago
JSON representation

Create RestAPI with ExpressJS, MongoDB, Mongoose and EJS for view admin dashboard.

Awesome Lists containing this project

README

          

# Build Backend Stack CRUD with NodeJS, MongoDB and Mongoose

This project use [ExpressJS 🚀](https://expressjs.com) ([NodeJS](https://nodejs.org) framework), EJS for admin dashboard, [MongoDB](https://mongodb.com) and [Mongoose](https://mongoosejs.com/) (ODM For NodeJS).

## ER Diagram For 🌱 MongoDB

![Entity Diagram MongoDB](https://res.cloudinary.com/dsv9w1ey3/image/upload/v1602518877/github-images/Challange_Ch_6_Entity_Diagram_z7jldc.png)

## Feature

### Dashboard View

![Dashboard View With EJS](https://res.cloudinary.com/dsv9w1ey3/image/upload/v1602516872/github-images/dashboard-admin-expressjs-mongodb-ejs_ayox7l.png)

### CRUD Method

- For **GET All data** for table `user_game_biodata` and` user_game_history` with showed on terminal (shell) json

### 2 RestAPI endpoint, for admin dashboard and Frontend

![Flow Chart Backend ReSTAPI EJS end Front-End](https://res.cloudinary.com/dsv9w1ey3/image/upload/v1602142703/github-images/Flow_Chart_Admin_Dashboard_Challenge_Chapter_6_dc01be.png)

## ⚙️ Prequisite

- Node Version 12.18.4 LTS (Recomended)
- MongoDB

## List Package Node Modules On Production

- Body Parser
- EJS
- Express
- Method Override
- Mongoose

## List Package Node Moduels On Development

- Dotenv
- Nodemon

### Getting Started On Development

$ cd expressjs-ejs-mongodb

$ npm install

$ touch .env

Configuring .env file, example:

`DATABASE_URL="mongodb://localhost:27017"`

$ npm run dev