Skip to content

jbytes1027/better-blogs-server

Repository files navigation

Better Blogs Server

The backend for Better Blogs, a reddit-like sharing platform for blog posts. Built to learn modern full stack development. The client is here.

Tech Stack

Usage

Setup

Set environment variables with the shell or a .env file. The environmental variables are MONGODB_URI, MONGODB_URI_TEST, JWT_SECRET, and PORT. Docker Compose can be used to start a local MongoDB instance for development with the file docker-compose.mongo.dev.yml

Linting

Run npm run lint to check for linting errors and npm run lint:fix to format all code to spec.

Development

Run npm run dev to start in development mode at http://localhost:3001/.

Deployment

Run npm start to start in production mode.