-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78e6f0c
commit 1c25d9e
Showing
22 changed files
with
454 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
components: | ||
- name: components-api | ||
url: https://github.com/lenra-io/components-api | ||
version: v1.0.0-beta.81 | ||
version: v1.0.0-beta.85 | ||
filePrefix: lenra-api-docs | ||
containsVersion: true | ||
- name: cli | ||
url: https://github.com/lenra-io/lenra_cli | ||
version: v1.0.0-beta.27 | ||
version: v1.0.0-beta.31 | ||
filePrefix: lenra-cli-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,60 @@ | ||
--- | ||
name: Create a project | ||
--- | ||
|
||
## Create a **new Lenra project** | ||
|
||
Once the Lenra CLI is downloaded, you can use it to create a new Lenra app from a template. | ||
|
||
To create a new Lenra project you can just run the `lenra new` command. This command takes two parameters, the app template name ([see the available templates](#createwithyourfavoritelanguage)) and an optional target directory (if not defined, the project will be created in the current directory). | ||
|
||
```bash | ||
# new app from javascript template in a new 'my-app' directory | ||
lenra new javascript my-app | ||
# move to the new app dir | ||
cd my-app | ||
# initialize git versionning | ||
git init | ||
# start your app | ||
lenra dev | ||
``` | ||
|
||
|
||
|
||
## Create with your **favorite language** | ||
|
||
{:#templates} | ||
- [![JavaScript](/img/languages/javascript.svg)](https://github.com/lenra-io/template-javascript) | ||
- [![TypeScript](/img/languages/typescript.svg)](https://github.com/lenra-io/template-typescript) | ||
- [![Rust](/img/languages/rust.svg)](https://github.com/lenra-io/template-rust) | ||
- [![Python](/img/languages/python.svg)](https://github.com/lenra-io/template-python) | ||
- [![V-lang](/img/languages/v-lang.svg)](https://github.com/lenra-io/template-v) | ||
- {:.soon} | ||
[![Java SpringBoot](/img/languages/spring.svg)](https://github.com/lenra-io/template-java-springboot) | ||
- {:.soon} | ||
[![PHP](/img/languages/php.svg)](https://github.com/lenra-io/template-php) | ||
- {:.soon} | ||
[![Elixir](/img/languages/elixir.svg)](https://github.com/lenra-io/template-elixir) | ||
- {:.soon} | ||
[![Ruby on Rails](/img/languages/ruby-on-rails.svg)](https://github.com/lenra-io/template-ruby-on-rails) | ||
- {:.soon} | ||
[![Swift](/img/languages/swift.svg)](https://github.com/lenra-io/template-swift) | ||
- {:.soon} | ||
[![Go](/img/languages/go-lang.svg)](https://github.com/lenra-io/template-go) | ||
- {:.soon} | ||
[![C#](/img/languages/c-sharp.svg)](https://github.com/lenra-io/template-csharp) | ||
|
||
## New project | ||
|
||
Once the [Lenra CLI is installed](./install.html), you can use it to create a new Lenra app. | ||
|
||
{:.or} | ||
- ### from **a template** | ||
|
||
Creating an app from a template is the easiest way to start. | ||
The Lenra templates are just git repositories with a basic app that implements the Lenra app API. | ||
|
||
You can find the list of available templates [{:rel="noopener"}here](https://github.com/search?q=topic%3Alenra+topic%3Atemplate&sort=stargazers&type=repositories). | ||
|
||
To create a new Lenra project you can just run the [`lenra new` command](../references/cli/commands/new.html). | ||
Pass a list of GitHub topics to find the list of corresponding templates. | ||
If none is specified, the CLI will let you choose in the full list. | ||
You also can specify the name of a target directory for the new app with the `--path` option. | ||
|
||
```bash | ||
# new app from javascript template in a new 'my-app' directory | ||
lenra new javascript --path my-app | ||
# move to the new app dir | ||
cd my-app | ||
# initialize git versionning | ||
git init | ||
# start your app | ||
lenra dev | ||
``` | ||
|
||
#### Maintained by the **Lenra team** | ||
|
||
We have created a few templates to help you start your next project. | ||
|
||
{:#templates} | ||
- [{:.btn rel="noopener"}![JavaScript](/img/languages/javascript.svg)](https://github.com/lenra-io/template-javascript) | ||
- [{:.btn rel="noopener"}![TypeScript](/img/languages/typescript.svg)](https://github.com/lenra-io/template-typescript) | ||
- [{:.btn rel="noopener"}![Rust](/img/languages/rust.svg)](https://github.com/lenra-io/template-rust) | ||
- [{:.btn rel="noopener"}![Python](/img/languages/python.svg)](https://github.com/lenra-io/template-python) | ||
- {:.soon} | ||
[{:.btn rel="noopener"}![PHP](/img/languages/php.svg)](https://github.com/lenra-io/template-php) | ||
- {:.soon} | ||
[{:.btn rel="noopener"}![Elixir](/img/languages/elixir.svg)](https://github.com/lenra-io/template-elixir) | ||
|
||
- ### from **scratch** | ||
|
||
If you don't find a template that fits your needs or you want to better understand how it works, you can create a new Lenra app from scratch. | ||
[{:.btn.link}Read the specific guide for that](../guides/create-from-scratch.html) | ||
## Start **developing** | ||
Now that you have a new Lenra app project, you can start developing it. | ||
Be shure you've understand the [Lenra principles](../guides/principles.html) before starting. | ||
|
||
|
||
[{:.btn.link.lenra-icon-arrow-right}Look at our todo list app guide](../guides/todo-list-app.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.