π₯ π₯ π π AI-driven Lightweight Open Source Thinkific, Teachable, and fresh Moodle alternative. AcademyKit helps you build your academy for your team or customer in the simplest way possible.
- Login into mysql using terminal(CLI)
mysql -u root -p
- Create a Database
CREATE DATABASE academykit;
SHOW DATABASES;
3 Create a new User
CREATE USER 'dev'@'localhost' IDENTIFIED BY '4ubiY2A163@f';
4.Grant privileges to the new user
GRANT ALL PRIVILEGES ON academykit.* TO 'dev'@'localhost';
FLUSH PRIVILEGES;
5 Exit the MySQL CLI EXIT;
To setup database on development run below sql statements on the database
/db/data/seed.sql
/db/data/testData.sql
For production during setup or upgrade
- TBD
dotnet watch run --project=AcademyKit.Server/AcademyKit.Server.csproj
The Hangfire Dashboard is available at https://localhost:7042/hangfire
To add a new migration from the root folder
dotnet ef migrations add "UpdateLicenseTable" --project AcademyKit.Server --startup-project AcademyKit.Server -o Infrastructure/Persistence/Migrations
To remove migrations
dotnet ef migrations remove --project AcademyKit.Server --startup-project AcademyKit.Server
To update database
dotnet ef database update --project AcademyKit.Server --startup-project AcademyKit.Server
Build docker image
docker build -t academy .
Run docker container
docker run -d -p 8080:80 --name academy academy
- If during debug, port 7042 is already in use kill the port as
# mac
sudo lsof -t -i tcp:7042 | xargs kill -9
Run
dotnet csharpier .
npm run cspell .