Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typos in docs/getting-started/guide.md #1206

Merged
merged 6 commits into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs-site/content/docs/getting-started/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Loco is a Web or API framework for Rust. It's also a productivity suite for deve
- **Fat models, slim controllers**. Models should contain most of your logic and business implementation, controllers should just be a lightweight router that understands HTTP and moves parameters around.
- **Command line driven** to keep your momentum and flow. Generate stuff over copying and pasting or coding from scratch.
- **Every task is "infrastructure-ready"**, just plug in your code and wire it in: controllers, models, views, tasks, background jobs, mailers, and more.
- **Convention over configuration**: decisions are already done for you -- the folder structure matter, configuration shape and values matter, and the way an app is wired matter to how an app operates and for you do be the most effective.
- **Convention over configuration**: decisions are already done for you -- the folder structure matter, configuration shape and values matter, and the way an app is wired matter to how an app operates and for you to be the most effective.

## Creating a New Loco App

Expand Down Expand Up @@ -104,7 +104,7 @@ Here's a rundown of what Loco creates for you by default:

Let's get some responses quickly. For this, we need to start up the server.

You can now switch to to `myapp`:
You can now switch to `myapp`:

```sh
$ cd myapp
Expand Down Expand Up @@ -201,7 +201,7 @@ Loco has powerful generators, which will make you 10x productive and drive your

If you'd like to be entertained for a moment, let's "learn the hard way" and add a new controller manually as well.

Add a file called `home.rs`, and `pub mod home;` it in `mod.rs`:
Add a file called `home.rs`, and line `pub mod home;` in `mod.rs`:

```
src/
Expand Down Expand Up @@ -840,9 +840,9 @@ args: Vars { cli: {"var1": "val1", "var2": "val2"} }
------------------------
done: 0 users
```
If you have not added an user before, the report will be empty.
If you have not added a user before, the report will be empty.

To add an user check out chapter [Registering a New User](/docs/getting-started/tour/#registering-a-new-user) of [A Quick Tour with Loco](/docs/getting-started/tour/).
To add a user check out chapter [Registering a New User](/docs/getting-started/tour/#registering-a-new-user) of [A Quick Tour with Loco](/docs/getting-started/tour/).

Remember: this is environmental, so you write the task once, and then execute in development or production as you wish. Tasks are compiled into the main app binary.

Expand Down
Loading