Apps (Coming Soon) 23 / 32
Contributing
Want to make some contributions? Learn how to set up a local development version of the DevDojo Auth package.
We welcome all new contributions to this project. If you would like to contribute to this package, it will probably be helpful to learn how to set up a local version for working on the DevDojo Auth package.
Local Dev Version
To get a local development version of the DevDojo Auth package up and running, follow these steps:
- Create a new Laravel application
- Create a new folder at the root called
packages - Inside the packages folder will be
devdojo/auth, whereauthis the contents of the thedevdojo/auth repo - Update your composer.json to include
devdojo/authinside therepositorieskey, and includedevdojo/authinside therequirekey, like so:
composer.json example
{
...
"require": {
...
"devdojo/auth": "*"
}
...
"repositories": [
{
"type" : "path",
"url" : "./packages/devdojo/auth"
}
],
"minimum-stability": "dev"
}
You'll also need to set the stability to
devin the composer.json.
Then, run composer update. Next, we need to create two symlinks.
Create Symlinks
The first symlink gets the tests working. From the root directory, delete the current tests folder and create the following symlink:
ln -s packages/devdojo/auth/tests tests
The second symlink links the package public directory so you can see your CSS and JS changes:
cd public
ln -s ../packages/devdojo/auth/public auth
Finally, we need to install the package dependencies and start the asset watcher.
Run the Asset Watcher
From the packages/devdojo/auth directory you'll need to install the node dependencies by running:
npm install
Next, watch for changes while you are developing:
npm run dev
Time to Build
That's it! You should now have a local development version of the DevDojo Auth package running on your machine.
The Usual Etiquette
Keep in mind that this project is open source, and as such, the people who help build this project are giving their free time to build and maintain this package. It is made freely available in the hope that it will be of use to other developers. Please be considerate when raising issues or presenting pull requests. Let's show the world that developers are civilized and selfless people.