Code Monkey home page Code Monkey logo

milkmilk's Introduction

Milkmilk: Bootstrap fullstack web applications quickly.

Introduction

Milkmilk.rs is a crate for bootstrapping Rust web service applications quickly and provides premade routes for you to work with so you don't have to keep making the same 5-6 routes.

This crate will also automatically generate a base Dockerfile for you so that you can deploy quickly.

Currently, only Next.js is supported due to being able to provide easy SSR. Other front ends may get added on in the future.

Axum is the only Rust web framework supported at the moment, but more may be added depending on demand/.

Pre-requisites

You'll want Rust installed, as well as Node if you want to use a front end. You will also probably want Docker if you plan on deploying to a webservice that requires Docker image deployment.

Usage

Simply install milkmilk with this command:

  cargo install milkmilk

Now all you have to do is use milkmilk like so!

  mkmk start

Do you only need a backend? You can also do that:

  mkmk backend

Once you're done, you will probably want to do the following things before anything else:

  • Set up your migrations (currently this app bootstraps with SQLx so you'll want to use sqlx-cli to get started).

  • Make sure everything else you need is in order, like Nginx or any other alternative forms of storage you might need.

Then you can get started! It's as easy as that. The default database URL set in the .env will be a localhost Postgres database on default connection settings.

Supported Deployments

Currently the default command sets up a Dockerfile so that you can deploy to a Docker image. However, you can also bootstrap a shuttle app by simply adding the --shuttle flag like so:

  mkmk start --shuttle

You can also do this with backend-only starts:

  mkmk backend --shuttle

Contact

You can find me at my twitter.

milkmilk's People

Contributors

joshua-mo-143 avatar

Stargazers

Todd Young avatar Marc Espin avatar

Watchers

 avatar

milkmilk's Issues

Add shuttle.rs support

Add shuttle support.

This shouldn't be too hard as it's a single short file change, but they are about to carry out a new release so this is causing a delay in the roll-out of this feature.

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.