https://github.com/hafidnrzs/forum-api
Forum API project from Dicoding Back-End Developer Expert
https://github.com/hafidnrzs/forum-api
back-end ci-cd javascript nginx
Last synced: 3 months ago
JSON representation
Forum API project from Dicoding Back-End Developer Expert
- Host: GitHub
- URL: https://github.com/hafidnrzs/forum-api
- Owner: hafidnrzs
- Created: 2025-11-22T12:17:47.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-12-24T07:56:07.000Z (6 months ago)
- Last Synced: 2025-12-25T20:52:44.301Z (6 months ago)
- Topics: back-end, ci-cd, javascript, nginx
- Language: JavaScript
- Homepage:
- Size: 191 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Forum API
Back-End API for forum application built using JavaScript (Node.js). This is first project Dicoding Back-End Developer Expert
## How to run
1. Copy `test.example.json` and rename to `test.json` and fill with your configuration
2. Copy `.env.example` and rename to `.env` and fill with your environment variable
3. Install dependencies
```bash
npm install
```
3. Run the server
```bash
npm run start:dev # run the development server
npm run start # run production server
```
## Development command
```bash
npm run start:dev # run the development server
npm run test # run test and check test coverage using Jest
# Database Migration
npm run migrate # master command to run the database migration
npm run migrate up # run the migration
npm run migrate create "create-table-xxx" # create a new migration file to create a table
npm run migrate:test # master command to run the database migration for testing
```