Skip to content
Projekte

Über uns

🌐 YAF.NET – Forum für C# und ASP.NET.

Produktivität und Automatisierung

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

YAF.NET logo

license build status (4.x) build status (3.x) code coverage (4.x) code coverage (3.x) docker pulls Support Me

YetAnotherForum.NET (YAF.NET) is an open source forum for ASP.NET. The project is an international collaboration of like-minded, skilled and creative people who strive to make YAF.NET the most robust and flexible forum solution available.

See a live YAF.NET forum in action at the community support forum.

Contents

Versions

Version Platform Branch Status
YAF 4.x ASP.NET Core / .NET 10 or 11 master Stable
YAF 3.2.x ASP.NET / .NET Framework 4.8.1 netfx Stable

YAF supports the following databases:

  • Microsoft SQL Server

  • MySQL / MariaDB

  • PostgreSQL

  • SQLite, in YAF 4.x with one of two providers:

    • System.Data.SQLite (YAF.NET-Sqlite.slnx, release package YAF.Sqlite)
    • Microsoft.Data.Sqlite (YAF.NET-SqliteData.slnx, release package YAF.SqliteData), which also runs on ARM64 (e.g. Windows on ARM, Apple silicon, Raspberry Pi)

    Both use the same database file format, so a forum can switch between them.

YAF 4.x can run inside an Umbraco 18 site: the YAF.Umbraco.Plugins.Forums project (NuGet package YAFNET.Umbraco.Forums) serves the forum under /Forums, with single sign-on through Umbraco Members.

YAF 3.x is also available as a module for these CMSs:

Release notes are in CHANGES.md.

Quick start with Docker

Prebuilt images are published on Docker Hub as yafnet/yafnet, with a Docker Compose file for each database provider. From the yafsrc folder:

docker compose -f docker-compose-SqlServer.yml up -d

Then open http://localhost:8001. On the first start you are taken to the installation wizard, which creates the database tables and the admin account.

[!IMPORTANT] Change the default database password MyPass@word in the compose file before starting the stack.

Compose files for MySQL, PostgreSQL and SQLite, configuration via environment variables, mail setup and data volumes are described in the Docker guide.

Installation & upgrade

Install without the wizard

The values of the install wizard can come from the configuration (section BoardConfiguration:Install): when they are set, the forum installs itself on the first request (also a request of the install wizard), nobody can use the wizard before. Like every setting, they can be in the appsettings.json, in the user secrets (development) or in environment variables:

Key
ForumName, ForumEmail needed
AdminUserName, AdminEmail, AdminPassword needed, the host admin
ForumDescription optional
Culture optional, default en-US
ForumBaseUrlMask optional, default the address of the first request
# environment variables (e.g. in the docker-compose file), "__" separates the sections
BoardConfiguration__Install__ForumName="My Forum"
[email protected]
BoardConfiguration__Install__AdminUserName=Admin
[email protected]
BoardConfiguration__Install__AdminPassword=...

# or user secrets (development)
cd yafsrc/YetAnotherForum.NET
dotnet user-secrets set "BoardConfiguration:Install:AdminPassword" "..." --project YAF-SqlServer.csproj

The values are only used while no forum is installed: remove the password after the first start. If a value is missing or the install fails, the error is logged and the install wizard is shown.

More documentation can be found in the GitHub wiki.

Building from source

Prerequisites: the .NET 11.0 SDK and Node.js.

cd yafsrc/YetAnotherForum.NET
npm install
npm run build                           # compile the JS and CSS files (build.js)

cd ..
dotnet build YAF.NET-SqlServer.slnx     # or YAF.NET-MySql / -PostgreSQL / -Sqlite / -SqliteData

See the wiki for the full instructions: command line and Visual Studio. How to run the unit and UI tests is described in the tests README.

Screenshots

Board index

Board index

Forum

Forum

Topic

Topic

Admin control panel

Admin control panel

Support

Security

Please do not report security vulnerabilities in public issues. See SECURITY.md for how to report them.

License

YAF.NET is licensed under the Apache License 2.0.

Ähnliche Projekte entdecken

Wird geladen…