mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
a785483220d567720c3eef164de3f4d818e9d433
This commit enhances the user experience in two ways: 1. The feedback messages within the setup1.html file have been updated for both the username and password fields. The new messages better inform users about the rules for valid input— stating that the username must be 3-20 characters long and the password must contain at least eight characters. 2. The password validation process has been adjusted. Now, only the confirm password field gets marked as invalid when the entered passwords don't match. This helps users understand exactly which field needs correction.
GohCMS
🚧 This project is under development !
The features are not complete, not fully tested and subject to many changes.
Setup
Don't forget to setup the Environment variables!
Use with Docker
TODO (or is it...)
Build and run it yourself
Requirements
- The project is developed with Go 1.20.5
Build
There are 2 scripts to build the project:
super_build.shsuper_build.bat
They will build the project for windows, linux and macOS. The binaries will be in the bin folder.
You can also really just use go build to build the project for your current OS.
Run
Once the project is built, you can simply run the binary for your OS. Setting the environment variables is
of course required, but not necessarily via the .env file.
Environment variables
| Name | Type | Description | Comment |
|---|---|---|---|
| ENVIRONMENT | string | The environment the API is running in | required, development or production |
| PORT | int | The port the API will use | required |
| CORS_ALLOWED_ORIGINS | string | The allowed origins for CORS | required, semicolon separated list |
| DB_FILE | string | The path to the sqlite db file | required, can be at the root but name still required (e.g. ./gohcms.db) ; have to end up with .db |
API Usage
TODO
Demo
TODO
Languages
Go
61.3%
HTML
36.4%
Shell
2%
Dockerfile
0.3%