Skip to content
项目

关于

面向 F# 的约定优先 Web 开发框架,实现了服务器端函数式 MVC 模式。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Saturn

Build GitHub last commit Nuget (with prereleases)

Open in Gitpod

Saturn is a web development framework written in F# which implements the server-side MVC pattern. Many of its components and concepts will seem familiar to anyone with experience in other web frameworks like Ruby on Rails or Python’s Django.

It's heavily inspired by Elixir's Phoenix.

Read more about why I've decided to create Saturn, and some of its design choices on my blog - http://kcieslak.io/Reinventing-MVC-for-web-programming-with-F

Documentation

Saturn has nice documentation and I appreciate any help to improve it further by sending pull requests or just adding an issue with what you think is missing.

How to build

  1. Install the .NET 6.0 SDK from https://dotnet.microsoft.com/download/dotnet-core/6.0
  2. Restore dotnet SDK tools: dotnet tool restore
  3. Inside the repo directory, run dotnet run

How to run the automated tests for this project

Here we will present two ways of running the automated tests for this project. The first one is the preferred way since it is the same command used in the CI build script:

  • Inside the repo directory, run dotnet run -- Test.

Although, there is this second approach where you can specify a test scenario to run filtering by its statement:

  1. Change the directory to the tests folder using cd tests/Saturn.UnitTests/
  2. List all the tests statements with this command: dotnet run --list-tests
  3. Run only one test scenario, filtering by the test statement like in this example: dotnet run --filter "Controller Routing Tests.Add works".

How to contribute

Imposter syndrome disclaimer: I want your help. No really, I do.

There might be a little voice inside that tells you you're not ready; that you need to do one more tutorial, or learn another framework, or write a few more blog posts before you can help me with this project.

I assure you, that's not the case.

This project has some clear Contribution Guidelines and expectations that you can read here.

The contribution guidelines outline the process that you'll need to follow to get a patch merged. By making expectations and process explicit, I hope it will make it easier for you to contribute.

And you don't just have to write code. You can help out by writing documentation, tests, or even by giving feedback about this work. (And yes, that includes giving feedback about the contribution guidelines.)

Thank you for contributing!

Contributing and copyright

The project is hosted on GitHub where you can report issues, fork the project and submit pull requests.

The library is available under MIT license, which allows modification and redistribution for both commercial and non-commercial purposes.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

探索相关项目

加载中…