Merge branch 'master' into develop

This commit is contained in:
Barış Soner Uşaklı
2026-04-10 16:43:25 -04:00
2 changed files with 38 additions and 5 deletions

View File

@@ -43,12 +43,49 @@ NodeBB requires the following software to be installed:
* MongoDB, version 5 or greater **or** Redis, version 7.2 or greater
* If you are using [clustering](https://docs.nodebb.org/configuring/scaling/) you need Redis installed and configured.
* nginx, version 1.3.13 or greater (**only if** intending to use nginx to proxy requests to a NodeBB)
* (Optional) [Docker](https://docs.docker.com/get-docker/) for container-based setup
> Installation steps vary by operating system. Please follow the official documentation links above.
## Installation
[Please refer to platform-specific installation documentation](https://docs.nodebb.org/installing/os).
If installing via the cloud (or using Docker), [please see cloud-based installation documentation](https://docs.nodebb.org/installing/cloud/).
## Development Setup Overview
> NodeBB uses a CLI-based setup and does not run via standard `npm start`.
You can run NodeBB locally in two ways:
### Option 1: Native Setup (Recommended for Beginners & Contributors)
This approach helps you understand how NodeBB works internally.
**Basic flow:**
1. Clone the repository ```` https://github.com/NodeBB/NodeBB.git ````
2. Run the setup script ```` cd NodeBB ```` ```` ./nodebb setup ````
3. Start the application ```` ./nodebb start ````
**During setup, you will configure:**
- Database (MongoDB / Redis)
- Admin account
- Port (default: 4567)
### Option 2: Docker Setup (Quick & Isolated)
> Requires Docker to be installed: https://docs.docker.com/get-docker/
Run:
```bash
docker-compose up
````
This will start NodeBB along with required services at: ```` http://localhost:4567 ````
**For more details, see: https://docs.nodebb.org**
## Securing NodeBB
It is important to ensure that your NodeBB and database servers are secured. Bear these points in mind:

View File

@@ -64,15 +64,11 @@ describe('Topic thumbs', () => {
cid: categoryObj.cid,
title: 'Test Topic Title',
content: 'The content of test topic',
thumbs: [relativeThumbPaths[0]],
});
// Touch a couple files and associate it to a topic
createFiles();
await topics.setTopicFields(topicObj.topicData.tid, {
numThumbs: 1,
thumbs: JSON.stringify([relativeThumbPaths[0]]),
});
});
it('should return bool for whether a thumb exists', async () => {