Configurations
Simply download the Starter Kit and follow the detailed steps in the documentation. The starter kit includes all necessary files and dependencies, allowing you to quickly set up the project environment. The documentation provides step-by-step instructions, guiding you through the entire setup process, including installing required software, configuring project settings, and initializing the development server. With clear explanations and examples, you'll be able to get your project up and running smoothly in no time.
Tip: You can use RandomKeyGen to create secure and strong keys
Configure Backend (PHP)
- After downloading the project, upload the
backendfolder to server or if you are using localhost, place the folder in XAMPPhtdocs - Create a database and configure the
configuration/connection.phpwith your database credentials - Configure the
configuration/security.phpby setting the$signatureand$authTokenvariables with secure and strong keys
Configure Database (MySQL)
Upload the database.sql into your database, You can use phpMyAdmin, this will includes the admin authentication table
Configure Environment (Next JS)
Go to .env.local or .env and setup the keys
NEXT_PUBLIC_APP_NAME="IMDOS UI" #App Name
NEXT_PUBLIC_PREFIX_KEY="imdos-ui" #Prefix for token and cookies
NEXT_PUBLIC_FILE_PATH="http://localhost/path-to-backend" #Endpoint of the file
API_ENDPOINT="http://localhost/path-to-backend" #Endpoint of the PHP Backend file
SERVER_SIGNATURE="GENERATE_SERVER_SIGNATURE"
SERVER_SECRET="GENERATE_SERVER_SECRET"
JWT_SECRET="GENERATE_JWT_SECRET"
CRYPTO_SECRET="GENERATE_CRYPTO_SECRET"
Important: Make sure you have correctly set the SERVER_SIGNATURE with $signature and SERVER_SECRET with $secret
Install Node Modules and Run the Project (Next JS)
- To install the node modules run
npm installoryarn installcommand in your terminal - Run the project by running
npm run devoryarn dev - That's all