A boilerplate project for rust as backend and nextjs for the frontend.
Explore the docs »
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
Here are some steps to setup the project for yourself.
A devcontainer template is also provided for a quick start.
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
- Clone the repo
git clone https://github.com/grimm-integrations/planters_cycle.git
- Install NPM packages
cd ui && bun install
- Spin up the databases
docker compose up
- Create the database
bash ./scripts/create_database.sh
- Generate prisma clients
cd ui && bunx prisma generate
cd api && cargo prisma generate
- Apply migrations
cd api && cargo prisma migrate deploy
- Run the api
cd api && cargo run
- Run the frontend
cd ui && bun run dev
See the open issues for a full list of proposed features (and known issues).
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See MIT License for more information.
Johannes Grimm - @metratrj - grimmjohannes1998@gmail.com
Project Link: https://github.com/grimm-integrations/planters_cycle