Fastkart API Installation
Getting Started With Fastkart API
Follow this video tutorial to install the Fastkart API Click here
1. Open fastkart-api directory that you downloaded from CodeCanyon.
2. Environment Settings:
- Add the required database credentials in .env .
- Add values to the below keys in the .env file
If you're running your Laravel project on your own computer (localhost), make sure to use localhost with current running port and put in APP_URL. as a given example below
If you want to install on live server, you need to add your live server api url like a APP_URL=http://api.your-domain.com.
APP_URL=http://localhost:8000
DB_DATABASE=database_name
DB_USERNAME=database_username
DB_PASSWORD=database_password
3. Install Required Dependencies:
- In the fastkart-api folder, run following command in the terminal to install the required dependencies.
composer install
4. Generate Laravel APP KEY:
- Once the necessary dependencies are successfully installed, run following command to generate laravel app key.
php artisan key:generate
5. Installation of Fastkart:
Note: If you've previously run following command or migrated tables, be aware of the fact that it will erase all of your data.
- Then, run following command to install fastkart database table.
php artisan fastkart:install
During the installation, you'll be asked two questions:
1. Do you want to continue with the installation? If you say yes, Fastkart will continue to install.
2. Do you want to import in sample data? If you say yes, the sample data will be imported. If you say no, the installation will go ahead without adding any sample data.
6. Link Storage folder to Public folder:
- Then, run following command to store and display images correctly.
php artisan storage:link
7. Run Fastkart API:
- Once you've finished all the previous steps, you can run the Fastkart API by adding following command.
php artisan serve
- When you start your Fastkart API project, it typically runs on the default port, you can access it by opening 127.0.0.1:8000 in your web browser.
8. Verify Fastkart Purchase License Code:
- Before using the FastKart API, it's important to verify your Envato purchase code.
- Enter in your Envato username and the FastKart purchase code and click next button.
- If you don't know where to find your purchase code, click here: where is my purchase code
Note: Once a license is verified, it can't be used for another project. An envato purchase code can only be verified on one domain at a time.
Congratulations, Fastkart has been successfully installed and configured in your system!🎉
For Postman API Documentation Click Here.
Once you've finished installing the Fastkart API, the next step is to set up the FastKart Angular frontend. You can easily do this by following the instructions provided in the following link: Link to FastKart Angular Frontend Installation Guide.