- NodeJs >= v10.15.3
- Composer
- PHP >= 7.2
- MySQL or MariaDB
-
Clone repository:
git clone https://github.com/creativechain/onecomet.git
-
Create the project DB:
- Execute MySQL prompt. Use the superuser password if is needed:
mysql -u root -p
- Create a new DB:
CREATE DATABASE onecomet;
- Create a new user to manage the DB.
ocuserwill be the username to access the DB, andpasswordwill be her password to access.
GRANT ALL PRIVILEGES ON onecomet.* TO 'ocuser'@'localhost' IDENTIFIED BY 'password';
- Copy
.env.examplefile as new.envfile and edit it. Replace this environment variable value in this file for values used in the last step:
DB_PASSWORD=password
-
Install dependencies:
cd onecomet composer install npm install php artisan key:generate php artisan migrate
The project provides several tools to efficiently compile and minify js and css files. Source files must be created and
modified within their respective directory in resources. For example, for SASS files, this must be created within
resources/sass.
For one time files compilation execute this command:
- In development mode:
npm run dev- In production mode:
npm run prodFor live compilation (automatically compilation when file is changed and saved) execute this command:
- In development mode:
npm run watchTo run project locally execute:
php artisan serveGo to localhost:8000
If you want to change the port execute:
php artisan serve --port port_numberFor example:
php artisan serve --port 9000Go to localhost:9000