snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Snipe-it to run on my local system

Open pradeepneelam opened this issue 10 years ago • 7 comments

Hi team, Please provide me the step by step installation of snipe-it on my machine. I am little confused with the document you provided in http://docs.snipeitapp.com/installation/index.html.

pradeepneelam avatar Dec 18 '15 12:12 pradeepneelam

If you have specific questions, we can try to help you, but that is the step by step installation.

snipe avatar Dec 18 '15 13:12 snipe

i followed the steps but stuck up on running the command php artisan key:generate I am getting Warning: require(C:\xampp\htdocs\evassets\bootstrap/../vendor/autoload.php): fai led to open stream: No such file or directory in C:\xampp\htdocs\evassets\bootst rap\autoload.php on line 17

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\evassets\bootst rap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htd ocs\evassets\bootstrap\autoload.php on line 17

The installation guide is little bit confusing for me. I am trying to install snipe it on xampp,please brief me about the installation

pradeepneelam avatar Dec 18 '15 15:12 pradeepneelam

my machine is windows 7. The steps i followed 1.Downloaded the file and extracted to a folder under c:/xampp/htdocs/evassets snipe-it was extracted to the folder evassets 2.modified the file bootstrap/start.php.....as i want it run on localhost,the file looks like after modifying $env = $app->detectEnvironment( [ 'local' => [ 'homestead', 'AlisonMBP' ,'localhost'], 'travis-ci' => getenv('APP_ENV') == 'travis-ci', 'staging' => [ 'stagingweb01' ], 'production' => [ 's35' ] ] );

Note: when i go with the command "hostname" in command prompt,i got my hostname as "s35" and added localhost in 'local' 3.Set timezone as preferred 4.Created a database (evassets) under xampp 5.Edited the database.php file,which looks like this 'mysql' => array( 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'evassets', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ), 6.Had a doubt on Application settings,please guide on this 7.Downloaded composer.exe and moved to c:/xampp/htdocs/evassets 8.Rt click on composer.setup and selected Composer Install which after sometime,it is prompting for

Could not fetch https://api.github.com/repos/aws/aws-sdk-php-laravel/zipball/ce9 a9b5144d16c9bebda23f41c2dfc7f8da38471, please create a GitHub OAuth token to go over the API rate limit Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+ on+s35+2015-12-18+1246 to retrieve a token. It will be stored in "C:/Users/Admin/AppData/Roaming/Compos er/auth.json" for future use by Composer. Token (hidden):

What i understood is it wants some token

9.So,i ran php artisan key:generate --env=staging in c:/xampp/htdocs/evassetsn but i got a err messg like

Warning: require(C:\xampp\htdocs\evassets\bootstrap/../vendor/autoload.php): fai led to open stream: No such file or directory in C:\xampp\htdocs\evassets\bootst rap\autoload.php on line 17

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\evassets\bootst rap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htd ocs\evassets\bootstrap\autoload.php on line 17

Your patience is appreciated,please help me resolve this

pradeepneelam avatar Dec 18 '15 15:12 pradeepneelam

You didn't generate the github token (by following the url it provided you), so composer didn't finish.

snipe avatar Dec 18 '15 15:12 snipe

Greetings Snipe,i am able to generate the key now...and i modified in c:/xampp/htdocs/evassets/app/config/app.php.

I followed the steps on running the command from c:/xampp/htdocs/evassets php artisan app:install and the output is

Admin group created successfully. Reporting group created successfully. Users group created successfully. Your user was created successfully.

So,what is the next step now,how to access the snipe locally on my machine....Please help me with the steps

pradeepneelam avatar Dec 19 '15 05:12 pradeepneelam

when accessing http://10.0.0.149:82/evassets/public/ it is throwing me an error like snipe error

pradeepneelam avatar Dec 19 '15 05:12 pradeepneelam

finally i able to access snipe locally after bypassing the issues.But i am having a small thing ie is it possible to change the default current INR which is the Indian currency...

pradeepneelam avatar Dec 21 '15 09:12 pradeepneelam