Everyday solutions to everyday dev problems
As a developer, I stumble upon dev problems every single day.
Most of the time the fixes are trivial, but in some cases they need a thorough investigation.
In order to keep track of how I solved each of those problems, this application allows to keep track of each 'snap' of code/solution I may have encountered and used.
The DevSnaps application is composed of two parts:
- The front-end with Vue.js, Nuxt.js and Vuetify.js, and
- The back-end with Laravel's lightweight Lumen framework.
This repository DevSnaps-back is the code for the back-end.
This project has been created to serve as a playground for Nuxt and Vuetify (and Lumen to some extends since it's a bit different than Laravel), and to learn from it.
Be sure to check the code and tell me what can be improved so that we could all learn from you!
Since this is a work in progress, the features for now are pretty bare but more features are in preparation.
Check the project roadmap here.
- Clone this repository
git clone https://github.com/AlexandreBonneau/devSnaps-back.git
- Install the dependencies
cd devSnaps-back
composer install
- Create a
database/database.sqlite
file to store the Snap data (or use any sql server you'd prefer). - Run the migration
artisan migrate
- That's it for the back-end preparation!
If you want to run the DevSnaps application, you need to clone the front-end repo as well then follow the instructions from here.
Note: If you do not want to rename this repo to 'back-end' and put it along the front-end directory, you won't be able to run yarn back
from the front-end repo, and can run the back-end server using php -S localhost:4242 -t ./public
.
I'm open to any critics regarding the code, so please create an issue/pull request if you think any part of it can be improved!
I'll just leave my patreon page link here (I work on AutoNumeric and vue-autoNumeric too for instance), you never know :)
DevSnaps is an MIT-licensed open-source project, feel free to copy/edit/study its code!