Spaces:
Build error
Build error
Anuj-Panthri
commited on
Merge branch 'main' of github.com:AnujPanthri/TODOList-Laravel
Browse files- .env.example +8 -6
- .gitattributes +36 -0
- .github/workflows/main.yml +20 -0
- Dockerfile +23 -0
- README.md +26 -0
- app/Providers/AppServiceProvider.php +3 -0
- resources/views/welcome.blade.php +1 -0
.env.example
CHANGED
@@ -8,12 +8,14 @@ LOG_CHANNEL=stack
|
|
8 |
LOG_DEPRECATIONS_CHANNEL=null
|
9 |
LOG_LEVEL=debug
|
10 |
|
11 |
-
DB_CONNECTION=
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
17 |
|
18 |
BROADCAST_DRIVER=log
|
19 |
CACHE_DRIVER=file
|
|
|
8 |
LOG_DEPRECATIONS_CHANNEL=null
|
9 |
LOG_LEVEL=debug
|
10 |
|
11 |
+
DB_CONNECTION=sqlite
|
12 |
+
|
13 |
+
# DB_CONNECTION=mysql
|
14 |
+
# DB_HOST=127.0.0.1
|
15 |
+
# DB_PORT=3306
|
16 |
+
# DB_DATABASE=laravel
|
17 |
+
# DB_USERNAME=root
|
18 |
+
# DB_PASSWORD=
|
19 |
|
20 |
BROADCAST_DRIVER=log
|
21 |
CACHE_DRIVER=file
|
.gitattributes
CHANGED
@@ -9,3 +9,39 @@
|
|
9 |
/.github export-ignore
|
10 |
CHANGELOG.md export-ignore
|
11 |
.styleci.yml export-ignore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
/.github export-ignore
|
10 |
CHANGELOG.md export-ignore
|
11 |
.styleci.yml export-ignore
|
12 |
+
|
13 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
26 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
37 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
38 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
39 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
40 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
41 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
42 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
43 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
44 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
45 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
46 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
47 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
.github/workflows/main.yml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face hub
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [main]
|
5 |
+
|
6 |
+
# to run this workflow manually from the Actions tab
|
7 |
+
workflow_dispatch:
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
sync-to-hub:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@v3
|
14 |
+
with:
|
15 |
+
fetch-depth: 0
|
16 |
+
lfs: true
|
17 |
+
- name: Push to hub
|
18 |
+
env:
|
19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
+
run: git push https://anuj-panthri:$HF_TOKEN@huggingface.co/spaces/anuj-panthri/todolist-laravel main --force
|
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM composer
|
2 |
+
|
3 |
+
|
4 |
+
EXPOSE 8000
|
5 |
+
COPY ./ /app
|
6 |
+
WORKDIR /app
|
7 |
+
|
8 |
+
|
9 |
+
RUN cp .env.example .env;
|
10 |
+
RUN composer install;
|
11 |
+
RUN php artisan key:generate;
|
12 |
+
RUN php artisan migrate --force;
|
13 |
+
|
14 |
+
RUN ls -lh
|
15 |
+
|
16 |
+
# RUN chmod -R 777 public
|
17 |
+
RUN chmod -R 777 storage
|
18 |
+
RUN chmod -R 777 database
|
19 |
+
RUN chmod -R 777 bootstrap/cache
|
20 |
+
|
21 |
+
RUN ls -lh
|
22 |
+
|
23 |
+
CMD php artisan serve --host 0.0.0.0 --port 8000
|
README.md
CHANGED
@@ -1,3 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
|
2 |
|
3 |
<p align="center">
|
@@ -64,3 +76,17 @@ If you discover a security vulnerability within Laravel, please send an e-mail t
|
|
64 |
## License
|
65 |
|
66 |
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: TODOList Laravel
|
3 |
+
emoji: 👀
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: red
|
6 |
+
sdk: docker
|
7 |
+
pinned: false
|
8 |
+
app_port: 8000
|
9 |
+
---
|
10 |
+
|
11 |
+
hosted on hugging face space : https://anuj-panthri-todolist-laravel.hf.space/
|
12 |
+
|
13 |
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
|
14 |
|
15 |
<p align="center">
|
|
|
76 |
## License
|
77 |
|
78 |
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
79 |
+
|
80 |
+
|
81 |
+
|
82 |
+
|
83 |
+
|
84 |
+
## Steps to Run
|
85 |
+
|
86 |
+
1. git clone this repo
|
87 |
+
1. cp .env.example .env
|
88 |
+
1. composer install
|
89 |
+
1. php artisan key:generate
|
90 |
+
1. make database changes to .env file(skip it as I have updated .env.example)
|
91 |
+
1. php artisan migrate
|
92 |
+
1. php artisan serve
|
app/Providers/AppServiceProvider.php
CHANGED
@@ -20,5 +20,8 @@ class AppServiceProvider extends ServiceProvider
|
|
20 |
public function boot(): void
|
21 |
{
|
22 |
//
|
|
|
|
|
|
|
23 |
}
|
24 |
}
|
|
|
20 |
public function boot(): void
|
21 |
{
|
22 |
//
|
23 |
+
if($this->app->environment('production')) {
|
24 |
+
\URL::forceScheme('https');
|
25 |
+
}
|
26 |
}
|
27 |
}
|
resources/views/welcome.blade.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
<link href="https://fonts.bunny.net/css?family=figtree:400,600&display=swap" rel="stylesheet" />
|
12 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
13 |
<link href="{{ asset('css/style.css') }}" rel="stylesheet">
|
|
|
14 |
</head>
|
15 |
<body>
|
16 |
<div class="main_container">
|
|
|
11 |
<link href="https://fonts.bunny.net/css?family=figtree:400,600&display=swap" rel="stylesheet" />
|
12 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
13 |
<link href="{{ asset('css/style.css') }}" rel="stylesheet">
|
14 |
+
<!-- <link href="css/style.css" rel="stylesheet"> -->
|
15 |
</head>
|
16 |
<body>
|
17 |
<div class="main_container">
|