Create a free-publishing ads website usign :
• Create a model, a CRUD, some controller(s) and view(s) for users’ profiles.
• Create a model, a CRUD, some controller(s) and view(s) for ads’ system.
• Create an authentication system to sign-up and login to your website.
• Implement some basic features, such as a search bar or some filters to browse content.
• The User model must have at least: login, password, email, phone number, nickname.
• A confirmation mail must be sent to newly registered users.
• The Ads model must have at least: title, category, description, picture(s), price, location.
• Some views will allow to display/add/edit one or more ads.
• Create a model, a CRUD, some controller(s) and view(s) for categories’ system.
Please check the official laravel installation guide for server requirements before you start. Official Documentation
Clone the repository
git clone [email protected]:ManonVioleau/CodingAcademy_LaravelProject_AdsWebSite.git
Switch to the repo folder
cd CodingAcademy_LaravelProject_AdsWebSite
Install all the dependencies using composer
composer install
Copy the example env file and make the required configuration changes in the .env file
cp .env.example .env
Run the database migrations (Set the database connection in .env before migrating)
php artisan migrate
Start the local development server
php artisan serve
You can now access the server at http://localhost:8000
TL;DR command list
git clone [email protected]:ManonVioleau/CodingAcademy_LaravelProject_AdsWebSite.git
cd CodingAcademy_LaravelProject_AdsWebSite
composer install
cp .env.example .env
Make sure you set the correct database connection information before running the migrations Environment variables
php artisan migrate
php artisan serve
Populate the database with seed data with relationships which includes users, articles, comments, tags, favorites and follows. This can help you to quickly start testing the api or couple a frontend and start using it with ready content.
Open the AdSeeder, CategorySeeder and DatabaseSeeder and set the property values as per your requirement
database/seeders/AdSeeder.php
database/seeders/CategorySeeder.php
database/seeders/DatabaseSeeder.php
Run the database seeder and you're done
php artisan db:seed
Note : It's recommended to have a clean database before seeding. You can refresh your migrations at any point to clean the database by running the following command
php artisan migrate:refresh
app
- Contains all the Eloquent modelsapp/Http/Controllers
- Contains all the controllersapp/Http/Middleware
- Contains the auth middlewareconfig
- Contains all the application configuration filesdatabase/factories
- Contains the model factory the models concerneddatabase/migrations
- Contains all the database migrationsdatabase/seeders
- Contains the database seederroutes
- Contains all the api routes defined in api.php file
.env
- Environment variables can be set in this file
Note : You can quickly set the database information and other variables in this file and have the application fully working.