Skip to content

Installation

oitcode edited this page Nov 25, 2024 · 27 revisions

Once all the installation requirements have been met, follow the below steps to install Samarium.

Clone Samarium code.

git clone https://github.com/oitcode/samarium.git

Rename the application name (Optional)

Rename samarium if you wish to.

mv samarium project_name

cd into samarium directory

cd project_name

Setup Mysql

mysql> CREATE DATABASE db_name;

mysql> CREATE USER 'db_user_name'@'localhost' IDENTIFIED BY 'use_good_password';

mysql> GRANT ALL PRIVILEGES ON db_name.* TO db_user_name@localhost;

Replace db_name and db_user_name to actual db name and db user name.

Create .env file

cp env.example .env

Give correct database name, database user and database password in the .env file.

Install php dependencies through composer.

composer install

Install npm dependencies through npm.

npm install

npm run dev

Run migrations.

php artisan migrate

Generate application key

php artisan key:generate

Create storage links

php artisan storage:link

Launch the application

php artisan serve

Use the application

Thats it! If you completed all the steps above, then you can use the application now. To use application dashboard visit url 127.0.0.1:8000/dashboard.

To see the website built visit 127.0.0.1:8000 in browser.

Hope you like it.