- 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.
ocuser
will be the username to access the DB, andpassword
will be her password to access.
GRANT ALL PRIVILEGES ON onecomet.* TO 'ocuser'@'localhost' IDENTIFIED BY 'password';
- Copy
.env.example
file as new.env
file 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 prod
For live compilation (automatically compilation when file is changed and saved) execute this command:
- In development mode:
npm run watch
To run project locally execute:
php artisan serve
Go to localhost:8000
If you want to change the port execute:
php artisan serve --port port_number
For example:
php artisan serve --port 9000
Go to localhost:9000