Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/cuongndc9/mern-stack

🗡️🍣 Getting Started with MERN Stack.
https://github.com/cuongndc9/mern-stack

103cuong expressjs mern mern-crud mern-project mern-stack mongodb nodejs reactjs

Last synced: about 1 month ago
JSON representation

🗡️🍣 Getting Started with MERN Stack.

Awesome Lists containing this project

README

        

# mern-stack

> 🗡️🍣 Getting Started with MERN Stack.

## Install

Install dependencies
```
$ npm install && npm run client-install
```
Create `.env` file
```
MONGODB_URI=
```

## Usage

Run `server` only
```
$ npm start
```
Run `client` only
```
$ npm run client
```
Run `client` & `server`
```
$ npm run dev
```

## API

| Route | HTTP method | Description |
|------------------|-------------|-----------------------------|
| /api/cats | `GET` | Get all the cats. |
| /api/cats | `POST` | Create a cat. |
| /api/cats/:catId | `GET` | Get a single cat. |
| /api/cats/:catId | `PUT` | Update a cat with new info. |
| /api/cats/:catId | `DELETE` | Delete a cat. |

## License

![License](https://img.shields.io/github/license/cuongw/mern-stack-starter.svg?style=flat-square)