MANAGEMEN PENYIMPAN FILE AND FOLDER
Folder Utama Proyek
src
(Source)That sounds exciting! Starting your project "xp.v.001" with Laravel 9 and Tailwind CSS is a great choice. Here are a few steps to help you get started with the initial setup:
Step 0.1: Initial Setup
Install Laravel: Make sure you have Composer installed, then run the following command in your terminal to create a new Laravel project:
bashcomposer create-project --prefer-dist laravel/laravel xp.v.001
Navigate to the Project Directory:
bashcd xp.v.001
Install Tailwind CSS: You can install Tailwind CSS via npm. First, make sure you have Node.js and npm installed. Then run:
bashnpm install -D tailwindcss npx tailwindcss init
Configure Tailwind: Open the
tailwind.config.js
file and configure the content paths:javascriptmodule.exports = { content: [ "./resources/**/*.blade.php", "./resources/**/*.js", "./resources/**/*.vue", ], theme: { extend: {}, }, plugins: [], };
Create Your CSS File: In the
resources/css
directory, create a new file namedapp.css
and add the Tailwind directives:css@tailwind base; @tailwind components; @tailwind utilities;
Compile Your Assets: Make sure you have Laravel Mix installed, then add the following to your
webpack.mix.js
:javascriptmix.js('resources/js/app.js', 'public/js') .css('resources/css/app.css', 'public/css') .postCss('resources/css/app.css', 'public/css', [ require('tailwindcss'), ]);
Run the following command to compile your assets:
bashnpm run dev
Set Up Your Routes and Views: Create routes in
routes/web.php
and corresponding views in theresources/views
directory.Start the Development Server: Run the following command to start your Laravel development server:
bashphp artisan serve
Access Your Application: Open your browser and navigate to
http://127.0.0.1:8000
to see your application in action.
If you need more specific help with any step or have questions about features to implement, feel free to ask!
0 Comments:
Posting Komentar