diff --git a/docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md b/docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md index cf7bd18d63..ab2a8aed5f 100644 --- a/docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md +++ b/docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md @@ -8,9 +8,9 @@ canonicalUrl: https://docs.strapi.io/developer-docs/latest/setup-deployment-guid SQLite is the default ([Quick Start](/developer-docs/latest/getting-started/quick-start.md)) and recommended database to quickly create an app locally. -## Install SQLite locally +## Install SQLite using starter -Simply use one of the following commands. +Use one of the following commands: @@ -34,6 +34,40 @@ This will create a new project and launch it in the browser. The [Quick Start Guide](/developer-docs/latest/getting-started/quick-start.md) is a complete step-by-step tutorial. ::: +## Install SQLite manually + +In terminal, run the following command: + + + + +```sh +npm install better-sqlite3 +``` + + + +```sh +yarn add better-sqlite3 +``` + + + + +Add the following to your `./config/database.js` file: + +```js +module.exports = ({ env }) => ({ + connection: { + client: 'sqlite', + connection: { + filename: path.join(__dirname, '..', env('DATABASE_FILENAME', '.tmp/data.db')), + }, + useNullAsDefault: true, + }, +}); +``` + ## Other SQL Databases (PostgreSQL, MySQL) Refer to the [configuration section](/developer-docs/latest/setup-deployment-guides/configurations/required/databases.md) for all supported options to setup Strapi with your SQL database.