Skip to content

Commit 9c7902e

Browse files
authored
Merge pull request #116 from akai-org/main
Release v1.0.3
2 parents 63e72aa + 1b51551 commit 9c7902e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+11797
-121
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
access_token_lifetime: 300s
3838

3939
- name: Login to Artifact Registry
40-
uses: docker/login-action@v1
40+
uses: docker/login-action@v2
4141
with:
4242
registry: europe-north1-docker.pkg.dev
4343
username: oauth2accesstoken

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules
22
/.idea
33
/apps/client/.idea
44
.vscode
5-
.DS_Store
5+
.DS_Store
6+
.env

apps/blog/.env.example

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Host i port dla Strapi, moze zostac bez zmian
2+
HOST=0.0.0.0
3+
PORT=1337
4+
5+
# Klucze api, uderzcie głową w klawiature i będzie ok
6+
APP_KEYS="toBeModified1,toBeModified2"
7+
API_TOKEN_SALT=tobemodified
8+
ADMIN_JWT_SECRET=tobemodified
9+
TRANSFER_TOKEN_SALT=tobemodified
10+
JWT_SECRET=tobemodified
11+
ENCRYPTION_KEY=tobemodified
12+
13+
# Database
14+
DATABASE_CLIENT=postgres
15+
DATABASE_HOST=database # Tu ustawicie localhost jak nie uzywacie dev dockera
16+
DATABASE_PORT=5432
17+
DATABASE_NAME=woof
18+
DATABASE_USERNAME=enactus
19+
DATABASE_PASSWORD=zaq1@WSX
20+
DATABASE_SSL=false
21+
JWT_SECRET=bardzo_dlugi_ciag

apps/blog/.gitignore

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
############################
2+
# OS X
3+
############################
4+
5+
.DS_Store
6+
.AppleDouble
7+
.LSOverride
8+
Icon
9+
.Spotlight-V100
10+
.Trashes
11+
._*
12+
13+
14+
############################
15+
# Linux
16+
############################
17+
18+
*~
19+
20+
21+
############################
22+
# Windows
23+
############################
24+
25+
Thumbs.db
26+
ehthumbs.db
27+
Desktop.ini
28+
$RECYCLE.BIN/
29+
*.cab
30+
*.msi
31+
*.msm
32+
*.msp
33+
34+
35+
############################
36+
# Packages
37+
############################
38+
39+
*.7z
40+
*.csv
41+
*.dat
42+
*.dmg
43+
*.gz
44+
*.iso
45+
*.jar
46+
*.rar
47+
*.tar
48+
*.zip
49+
*.com
50+
*.class
51+
*.dll
52+
*.exe
53+
*.o
54+
*.seed
55+
*.so
56+
*.swo
57+
*.swp
58+
*.swn
59+
*.swm
60+
*.out
61+
*.pid
62+
63+
64+
############################
65+
# Logs and databases
66+
############################
67+
68+
.tmp
69+
*.log
70+
*.sql
71+
*.sqlite
72+
*.sqlite3
73+
74+
75+
############################
76+
# Misc.
77+
############################
78+
79+
*#
80+
ssl
81+
.idea
82+
nbproject
83+
public/uploads/*
84+
!public/uploads/.gitkeep
85+
.tsbuildinfo
86+
.eslintcache
87+
88+
############################
89+
# Node.js
90+
############################
91+
92+
lib-cov
93+
lcov.info
94+
pids
95+
logs
96+
results
97+
node_modules
98+
.node_history
99+
100+
############################
101+
# Package managers
102+
############################
103+
104+
.yarn/*
105+
!.yarn/cache
106+
!.yarn/unplugged
107+
!.yarn/patches
108+
!.yarn/releases
109+
!.yarn/sdks
110+
!.yarn/versions
111+
.pnp.*
112+
yarn-error.log
113+
114+
############################
115+
# Tests
116+
############################
117+
118+
coverage
119+
120+
############################
121+
# Strapi
122+
############################
123+
124+
.env
125+
license.txt
126+
exports
127+
.strapi
128+
dist
129+
build
130+
.strapi-updater.json
131+
.strapi-cloud.json

apps/blog/README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# 🚀 Getting started with Strapi
2+
3+
Strapi comes with a full featured [Command Line Interface](https://docs.strapi.io/dev-docs/cli) (CLI) which lets you scaffold and manage your project in seconds.
4+
5+
### `develop`
6+
7+
Start your Strapi application with autoReload enabled. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-develop)
8+
9+
```
10+
npm run develop
11+
# or
12+
yarn develop
13+
```
14+
15+
### `start`
16+
17+
Start your Strapi application with autoReload disabled. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-start)
18+
19+
```
20+
npm run start
21+
# or
22+
yarn start
23+
```
24+
25+
### `build`
26+
27+
Build your admin panel. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-build)
28+
29+
```
30+
npm run build
31+
# or
32+
yarn build
33+
```
34+
35+
## ⚙️ Deployment
36+
37+
Strapi gives you many possible deployment options for your project including [Strapi Cloud](https://cloud.strapi.io). Browse the [deployment section of the documentation](https://docs.strapi.io/dev-docs/deployment) to find the best solution for your use case.
38+
39+
```
40+
yarn strapi deploy
41+
```
42+
43+
## 📚 Learn more
44+
45+
- [Resource center](https://strapi.io/resource-center) - Strapi resource center.
46+
- [Strapi documentation](https://docs.strapi.io) - Official Strapi documentation.
47+
- [Strapi tutorials](https://strapi.io/tutorials) - List of tutorials made by the core team and the community.
48+
- [Strapi blog](https://strapi.io/blog) - Official Strapi blog containing articles made by the Strapi team and the community.
49+
- [Changelog](https://strapi.io/changelog) - Find out about the Strapi product updates, new features and general improvements.
50+
51+
Feel free to check out the [Strapi GitHub repository](https://github.com/strapi/strapi). Your feedback and contributions are welcome!
52+
53+
## ✨ Community
54+
55+
- [Discord](https://discord.strapi.io) - Come chat with the Strapi community including the core team.
56+
- [Forum](https://forum.strapi.io/) - Place to discuss, ask questions and find answers, show your Strapi project and get feedback or just talk with other Community members.
57+
- [Awesome Strapi](https://github.com/strapi/awesome-strapi) - A curated list of awesome things related to Strapi.
58+
59+
---
60+
61+
<sub>🤫 Psst! [Strapi is hiring](https://strapi.io/careers).</sub>

apps/blog/config/admin.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
export default ({ env }) => ({
2+
auth: {
3+
secret: env('ADMIN_JWT_SECRET'),
4+
},
5+
apiToken: {
6+
salt: env('API_TOKEN_SALT'),
7+
},
8+
transfer: {
9+
token: {
10+
salt: env('TRANSFER_TOKEN_SALT'),
11+
},
12+
},
13+
secrets: {
14+
encryptionKey: env('ENCRYPTION_KEY'),
15+
},
16+
flags: {
17+
nps: env.bool('FLAG_NPS', true),
18+
promoteEE: env.bool('FLAG_PROMOTE_EE', true),
19+
},
20+
});

apps/blog/config/api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default {
2+
rest: {
3+
defaultLimit: 25,
4+
maxLimit: 100,
5+
withCount: true,
6+
},
7+
};

apps/blog/config/database.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import path from 'path';
2+
3+
export default ({ env }) => {
4+
const client = env('DATABASE_CLIENT', 'sqlite');
5+
6+
const connections = {
7+
mysql: {
8+
connection: {
9+
host: env('DATABASE_HOST', 'localhost'),
10+
port: env.int('DATABASE_PORT', 3306),
11+
database: env('DATABASE_NAME', 'strapi'),
12+
user: env('DATABASE_USERNAME', 'strapi'),
13+
password: env('DATABASE_PASSWORD', 'strapi'),
14+
ssl: env.bool('DATABASE_SSL', false) && {
15+
key: env('DATABASE_SSL_KEY', undefined),
16+
cert: env('DATABASE_SSL_CERT', undefined),
17+
ca: env('DATABASE_SSL_CA', undefined),
18+
capath: env('DATABASE_SSL_CAPATH', undefined),
19+
cipher: env('DATABASE_SSL_CIPHER', undefined),
20+
rejectUnauthorized: env.bool('DATABASE_SSL_REJECT_UNAUTHORIZED', true),
21+
},
22+
},
23+
pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) },
24+
},
25+
postgres: {
26+
connection: {
27+
connectionString: env('DATABASE_URL'),
28+
host: env('DATABASE_HOST', 'localhost'),
29+
port: env.int('DATABASE_PORT', 5432),
30+
database: env('DATABASE_NAME', 'strapi'),
31+
user: env('DATABASE_USERNAME', 'strapi'),
32+
password: env('DATABASE_PASSWORD', 'strapi'),
33+
ssl: env.bool('DATABASE_SSL', false) && {
34+
key: env('DATABASE_SSL_KEY', undefined),
35+
cert: env('DATABASE_SSL_CERT', undefined),
36+
ca: env('DATABASE_SSL_CA', undefined),
37+
capath: env('DATABASE_SSL_CAPATH', undefined),
38+
cipher: env('DATABASE_SSL_CIPHER', undefined),
39+
rejectUnauthorized: env.bool('DATABASE_SSL_REJECT_UNAUTHORIZED', true),
40+
},
41+
schema: env('DATABASE_SCHEMA', 'public'),
42+
},
43+
pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) },
44+
},
45+
sqlite: {
46+
connection: {
47+
filename: path.join(__dirname, '..', '..', env('DATABASE_FILENAME', '.tmp/data.db')),
48+
},
49+
useNullAsDefault: true,
50+
},
51+
};
52+
53+
return {
54+
connection: {
55+
client,
56+
...connections[client],
57+
acquireConnectionTimeout: env.int('DATABASE_CONNECTION_TIMEOUT', 60000),
58+
},
59+
};
60+
};

apps/blog/config/middlewares.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export default [
2+
'strapi::logger',
3+
'strapi::errors',
4+
'strapi::security',
5+
'strapi::cors',
6+
'strapi::poweredBy',
7+
'strapi::query',
8+
'strapi::body',
9+
'strapi::session',
10+
'strapi::favicon',
11+
'strapi::public',
12+
];

apps/blog/config/plugins.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default () => ({});

0 commit comments

Comments
 (0)