Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/clairefro/mern-todo-app-backend

backend for use with client https://github.com/clairefro/mern-todo-app
https://github.com/clairefro/mern-todo-app-backend

Last synced: 3 days ago
JSON representation

backend for use with client https://github.com/clairefro/mern-todo-app

Awesome Lists containing this project

README

        

Backend for MERN stack todo app (localhost).

client: https://github.com/clairefro/mern-todo-app

## Setup

### General
`npm install`

`nodemon server`

### DB Setup
Get mongodb
`brew install mongodb`

Create a data folder for mongodb to use
`sudo mkdir -p /data/db`

Start mongo with
`mongod`

in other terminal tab, create 'todos' db in mongo
```
mongo
use todos
```

server should show success message once db is connected.

Serves from PORT 4000

( for my future reference: npm install express body-parser cors mongoose nodemon )