# Install Sprnva Using Composer

If your computer already has PHP and Composer installed, you may create a new Sprnva project by using Composer directly :

```bash
composer create-project sprnva/sprnva example-app

cd example-app
```

* After the application has been created, you may start setting up the config with your credentials.
* set `'base_url' => 'example-app'` *('example-app' is the directory name of your application)*
* **if you don't want to add login and registration to your application**:
  * in `config.php` set database `'name' => ''`
* **if you want to add login and registration to your application**:

  * after you're done setting up `config.php`, create a database and the name should be the same to your credentials in `config.php`
  * then we will migrate the default tables. In your browser type this in your url:

  ```bash
  localhost/example-app/migration
  ```

  * when the migration module shows, click the fresh button to migrate the default tables.
  * then add the authentication called fortify via composer :

  ```bash
  composer require sprnva/fortify

  php vendor/sprnva/fortify/serve

  # or you can use the
  php fortify_serve
  ```
* finally, you can now build your desired application using sprnva.
