You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Note: Either the Couchbase Server must be installed and running on localhost or the connection string must be updated in the `config/couchbase.php` file.
102
103
104
+
> Tip: If Swagger UI loads without endpoints, generate the docs:
docker run -d --name laravel-container -p 8000:8000 \
122
+
-e DB_CONN_STR=<connection_string> \
123
+
-e DB_USERNAME=<username> \
124
+
-e DB_PASSWORD=<password> \
125
+
-e DB_BUCKET=travel-sample \
126
+
php-laravel-quickstart
115
127
```
116
128
117
129
Note: The `config/couchbase.php` file has the connection information to connect to your Capella cluster. You can also pass the connection information as environment variables to the Docker container.
118
130
If you choose not to pass the environment variables, you can update the `config/couchbase.php` file in the root directory.
119
131
120
-
Once the application is running, you can access it in your browser at [http://localhost:8000](http://localhost:8000).
132
+
Once the application is running, you can access it in your browser at [http://localhost:8000](http://localhost:8000). Swagger UI is available at [http://localhost:8000/api/documentation](http://localhost:8000/api/documentation).
121
133
122
134
### Verifying the Application
123
135
124
136
Once the application starts, you can see the details of the application on the logs.
The application will run on port 8000 of your local machine (http://localhost:8000). You will find the Swagger documentation of the API if you go to the URL in your browser. Swagger documentation is used in this demo to showcase the different API endpoints and how they can be invoked. More details on the Swagger documentation can be found in the [appendix](#swagger-documentation).
139
+
The application will run on port 8000 of your local machine (http://localhost:8000). Open Swagger UI at [http://localhost:8000/api/documentation](http://localhost:8000/api/documentation) to try the API endpoints. Swagger documentation is used in this demo to showcase the different API endpoints and how they can be invoked. More details on the Swagger documentation can be found in the [appendix](#swagger-documentation).
0 commit comments