|
|
||
|---|---|---|
| .. | ||
| config | ||
| images | ||
| middleware | ||
| migrations | ||
| routes | ||
| utils | ||
| .gitignore | ||
| README.md | ||
| UPDATE_ENV.md | ||
| env.example | ||
| package.json | ||
| server.js | ||
| test-s3-access.js | ||
README.md
Blog Editor Backend
Express.js API server for the blog editor application.
Setup
- Install dependencies:
npm install
-
Create
.envfile (see.env.example) -
Create PostgreSQL database:
createdb blog_editor
- Run migrations:
npm run migrate
- Start server:
npm run dev
API Documentation
See main README.md for API endpoints.
Database
PostgreSQL database with two main tables:
users- User accountsposts- Blog posts
Run migrations to set up the schema.