/planters_cycle

A boilerplate project for rust as backend and nextjs for the frontend.

Primary LanguageTypeScriptMIT LicenseMIT

Logo

Planters Cycle

A boilerplate project for rust as backend and nextjs for the frontend.

Explore the docs »

Report Bug . Request Feature

About The Project

Of course there are many boilerplate's out there, but none of them covered our expectations. So we decided to start our own.

Here's why:

  • We wanted to adapt rust as backend for the lightweight runtime.
  • Choosing NextJS for the frontend because of the huge community and the many things you can achieve with it.
  • We wanted something fast

Built With

Getting Started

Here are some steps to setup the project for yourself.

A devcontainer template is also provided for a quick start.

Prerequisites

We use some awesome tools to make this project possible.

  • node
  • bun
    curl -fsSL https://bun.sh/install | bash
  • rust
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • docker or psql and redis

Installation

  1. Clone the repo
git clone https://github.com/grimm-integrations/planters_cycle.git
  1. Install NPM packages
cd ui && bun install
  1. Spin up the databases
docker compose up
  1. Create the database
bash ./scripts/create_database.sh
  1. Generate prisma clients
cd ui && bunx prisma generate
cd api && cargo prisma generate
  1. Apply migrations
cd api && cargo prisma migrate deploy
  1. Run the api
cd api && cargo run
  1. Run the frontend
cd ui && bun run dev

Roadmap

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See MIT License for more information.

Contact

Johannes Grimm - @metratrj - grimmjohannes1998@gmail.com

Project Link: https://github.com/grimm-integrations/planters_cycle