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

https://github.com/obrm/dev-home

A social network MERN stack application that includes authentication, profiles and forum posts.
https://github.com/obrm/dev-home

express full-stack mern-stack mongodb nodejs react redux

Last synced: about 1 year ago
JSON representation

A social network MERN stack application that includes authentication, profiles and forum posts.

Awesome Lists containing this project

README

          

# Dev-Home

> Social network for developers

This is a social network MERN stack application that includes authentication, profiles and forum posts.

## Website of the live project
https://obrm-dev-home.herokuapp.com/

# Quick Start 🚀

### Add a default.json file in config folder with the following

```
{
"mongoURI": "",
"jwtSecret": "secret",
"githubToken": ""
}
```

### Install server dependencies

```bash
npm install
```

### Install client dependencies

```bash
cd client
npm install
```

### Run both Express & React from root

```bash
npm run dev
```

### Build for production

```bash
cd client
npm run build
```

### Test production before deploy

After running a build in the client 👆, cd into the root of the project.
And run...

Linux/Unix

```bash
NODE_ENV=production node server.js
```

Windows Cmd Prompt or Powershell

```bash
$env:NODE_ENV="production"
node server.js
```

Check in browser on [http://localhost:5000/](http://localhost:5000/)