lime

light license-key server in 1 file

      CodeFactor      

🍋‍🟩  What is lime?

Light license-key server in 1 file

[!WARNING] Current major version is zero (v0.x.x) to accommodate rapid development and fast iteration while getting early feedback from users. Please keep in mind that litecart is still under active development and therefore full backward compatibility is not guaranteed before reaching v1.0.0.

🏆  Features

… coming soon …

⬇️  Installation

… coming soon …

⬇️  Updating

… coming soon …

🚀  Getting started

… coming soon …

📚  Commands

… coming soon …

🏦  Adding payment systems

… coming soon …

🧩  For developers

The backend is developed in Go language. The frontend (admin site and base site) operates on the Vue3 and TailwindCSS.

There are a number of scripts (in the ./scripts folder) that simplify development:
./scripts/golang - Installs or updates a previously installed version of go (if needed).
./scripts/migration - Helps to work with migrations. For instance, the ./scripts/migration dev up command will apply new migrations from folder ./migrations, then implement the migrations from folder ./fixtures.
./scripts/sqlite - Optimizes the existing database.
./scripts/gen - Generate JWT or master-License keys.
./scripts/clear - Removing hung golang or vite processes.

First run:

  1. yarn --cwd ./web run build - This is necessary in order to be able to compile and run a go app.
  2. cd ./cmd/ && go run main.go gen --config - (if need) To save the configuration file with default parameters for further modification
  3. cd ./cmd/ && go run main.go serve - Launch the license server
  4. yarn --cwd ./web run dev - (if need) If you need to change the server for if you’re going to modify the UI admin or manager panel, it will launch a dev environment with Vite.

[!NOTE] I recommend running the ./scripts/migration dev up command. It will add test data to the database, which makes it easier to work with. For example, it will create products, transfer test images and create a test user for access to the admin panel on address http://0.0.0.0:8088/_/:
login - admin@mail.com
password - Pass123

👍  Contribute

If you want to say thank you and/or support the active development of lime:

  1. Add a GitHub Star to the project.
  2. Tweet about the project on your Twitter

  3. Write a review or tutorial on Medium, Dev.to or personal blog.
  4. Support the project by donating a cup of coffee.

You can learn more about how you can contribute to this project in the contribution guide.