MyCMS is a simple, lightweight headless CMS queryable via a single GraphQL endpoint.
It's based on a relational database table structure able to create custom attribute for every type of content defined in your project.
⚠️ This software is not finished and currently in development so it should not be used in production enviroments!⚠️ The UI application is not yet implemented!⚠️ Only SQLite database is currently supported!
- Clone the repository using the command
git clone https://github.com/manuelebagnolini/MyCMS.git
and checkout themain
branch.
- Install the latest version of the .NET SDK from this page https://dotnet.microsoft.com/download
- Next, navigate to the
MyCMS.Web.API
folder. - Call
dotnet build
. - Call
dotnet run
(ordotnet watch
for live coding) - Then open the
https://localhost:7040/graphql/
URL in your browser to test the GraphQL endpoint.
- Download Visual Studio 2022 (any edition) from https://www.visualstudio.com/downloads/
- Open
MyCMS.sln
and wait for Visual Studio to restore all Nuget packages - Ensure
MyCMS.Web.API
is the startup project - Select
Build solution
from the solution context menu - Run the project
If you run the project with dotnet watch
via command line or in debug mode in Visual Studio you will see the swagger index by hitting the https://localhost:7040/
URL.
If you select the /api/Test/ImportTestData
API you can define a value for the numArticles
input field for the number of articles to create in the database test structure.
Select Try it out
to call the api and populate the test database.
Inside the solution you will find a sample frontend project written in Blazor WebAssembly to show an example of MyCMS usage by a frontend application
- Navigate to the
MyCMS.Web.Sample
folder. - Call
dotnet build
. - Call
dotnet run
(ordotnet watch
for live coding) - Then open the
https://localhost:7058/
URL in your browser (if you rundotnet watch
the browser will open automatically).
- Open the contextual menu for the
MyCMS.Web.Sample
- Next go to the
debug
sub menu - Now select one from
Start new instance
andStart without debugging
- The browser will automatically open on
https://localhost:7058/
URL
The documentation can be accessed here
See the LICENSE file for licensing information.