Giter Site home page Giter Site logo

actix-rust-template's Introduction

Actix Rust Template

This is a basic template for a web service built with Actix Web, a powerful, pragmatic, and extremely fast web framework for Rust.

Features

  • Actix Web: Utilizes Actix Web for handling server operations, known for its speed and reliability.
  • Serde Serialization/Deserialization: Implements Serde for efficient and customizable serialization and deserialization of data.
  • Environment Logging: Configured with pretty_env_logger and log for detailed and formatted logging.
  • Environment Configuration: Uses dotenvy for loading environment variables from a .env file, making configuration seamless and flexible.

Prerequisites

To use this template, you need Rust installed on your system. If Rust isn't installed yet, follow the installation guide on the Rust official website.

Setup

To start using this template, clone the repository and navigate into the project directory:

git clone [email protected]:ViniciosLugli/actix-rust-template.git
cd actix-rust-template

Configuration

Create a .env file in the root directory of your project to store environment variables:

# Example .env content
RUST_LOG=info

Running the Application

To run the application, use the following command:

cargo run

The server will start on 127.0.0.1:3000. You can access the application by navigating to http://localhost:3000 in your web browser or using a tool like curl:

curl http://localhost:3000

Testing

This project contains basic tests. Run the tests with:

cargo test

actix-rust-template's People

Contributors

vinicioslugli avatar renovate[bot] avatar

Watchers

 avatar

actix-rust-template's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

cargo
Cargo.toml
  • actix-web 4.5.1
  • serde 1.0.200
  • serde_json 1.0.116
  • log 0.4.21
  • pretty_env_logger 0.5.0
  • dotenvy 0.15.7

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting end of expression or separator near ]
"sema

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.