Editing
Nitro
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Nitro == [[File:Nitro Logo.png|thumb|right|The Nitro logo]] '''Nitro''' is a web framework for the [[Elixir (programming language)|Elixir programming language]]. It provides a powerful and elegant way to build scalable, maintainable, and highly performant web applications. Nitro focuses on developer productivity and strives to provide a pleasant development experience while also prioritizing performance. === Features === * '''Routing:''' Nitro offers a flexible routing system that allows developers to define routes and map them to specific controller actions. * '''Lean Controllers:''' Nitro promotes lean controllers by encouraging the separation of concerns and the use of functional programming principles. * '''Templating Engine:''' Nitro integrates a templating engine that simplifies the creation and rendering of dynamic web content. * '''ORM Integration:''' Nitro seamlessly integrates with popular Elixir ORMs like Ecto, enabling developers to easily work with databases. * '''Middleware:''' Nitro supports the use of middleware, allowing developers to add custom logic at various stages of the request/response cycle. * '''Authentication and Authorization:''' Nitro provides built-in support for authentication and authorization, making it easy to secure web applications. * '''Testing:''' Nitro offers a testing framework that facilitates the creation of unit tests and integration tests for web applications. * '''Built-in Web Server:''' Nitro includes a built-in web server for development and testing purposes, making it easy to get started. == Getting Started == To start using Nitro in your Elixir project, you need to add it as a dependency in your `mix.exs` file. Open the file and add the following line to the `deps` function: ```elixir defp deps do [ {:nitro, "~> x.x.x"} ] end ``` Replace `x.x.x` with the desired version of Nitro. After saving the file, run the following command in your project's directory to fetch the dependency: ```shell mix deps.get ``` Once the dependency is installed, you can start building your Nitro application. Create your routes, controllers, and templates to define the desired behavior and layout of your web application. Use the Nitro command-line interface to start the built-in web server: ```shell mix nitro.server ``` Your Nitro application will now be accessible at `http://localhost:4000`. == Resources == Check out the following resources to learn more about Nitro and improve your proficiency in developing web applications with Elixir: * [https://nitroframework.dev/docs Nitro Documentation] * [https://elixir-lang.org/ Official Elixir Website] * [https://hexdocs.pm/elixir/ Elixir Hexdocs] [[Category:Elixir (programming language)]] [[Category:Web frameworks]] [[Category:Software development]]
Summary:
Please note that all contributions to Elixir Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Elixir Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information