BlogEditor/backend/README.md

541 B

Blog Editor Backend

Express.js API server for the blog editor application.

Setup

  1. Install dependencies:
npm install
  1. Create .env file (see .env.example)

  2. Create PostgreSQL database:

createdb blog_editor
  1. Run migrations:
npm run migrate
  1. Start server:
npm run dev

API Documentation

See main README.md for API endpoints.

Database

PostgreSQL database with two main tables:

  • users - User accounts
  • posts - Blog posts

Run migrations to set up the schema.