Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
35e4d24
Ajout et initialisation du back avec strapi
max-machin Nov 14, 2022
9f4d350
init back
ifanl-ibrahim Nov 14, 2022
b9eb395
Mise en place de l'architecture des dossiers, des chemins URL d'api ,…
max-machin Nov 14, 2022
7bd49bd
Merge branch 'main' into ifanl_ibrahim
ifanl-ibrahim Nov 14, 2022
54acabc
Ajout des icones
max-machin Nov 14, 2022
a0f52c6
Ajout commentaires
max-machin Nov 14, 2022
2250aaa
HomePage : Affichage des icons et mise en responsive de la grid des s…
max-machin Nov 14, 2022
e2d5e01
first commit
ifanl-ibrahim Nov 14, 2022
2523d9f
Log Form
Morgan-gh Nov 14, 2022
87c8dd9
Log Form Done
Morgan-gh Nov 15, 2022
3b28e0e
Affichage des évènements en fonction du sport
max-machin Nov 15, 2022
5ec8fcf
Prepa merge main
max-machin Nov 15, 2022
c835bda
Merge branch MachinMax in main add events vue
max-machin Nov 15, 2022
96f0920
api athlete
ifanl-ibrahim Nov 15, 2022
8d6a7f7
merge main
ifanl-ibrahim Nov 15, 2022
24d797a
Login Register Done
Morgan-gh Nov 15, 2022
872aa5d
Merge branch 'main' into morgan
Morgan-gh Nov 15, 2022
283a6bb
Merge pull request #1 from Morgan-gh/morgan
Morgan-gh Nov 15, 2022
1d47276
Ajout des pays relatifs à l'évenement
max-machin Nov 15, 2022
1418a62
Header + NavBar
Morgan-gh Nov 15, 2022
bd37555
page accont avec delete des vote
ifanl-ibrahim Nov 15, 2022
7e7a9e6
merge main
ifanl-ibrahim Nov 15, 2022
4c27a33
page délégation en cours
ifanl-ibrahim Nov 15, 2022
89f88b4
Prepa merge main into MachinMax
max-machin Nov 15, 2022
d0d098f
Merging main into MachinMax
max-machin Nov 15, 2022
e36538c
update function accont & delegation
ifanl-ibrahim Nov 16, 2022
6c04bf2
maj
ifanl-ibrahim Nov 16, 2022
7aec704
maj
ifanl-ibrahim Nov 16, 2022
3a58f89
Navbar Design OK
Morgan-gh Nov 16, 2022
0af1219
Navbar Design OK
Morgan-gh Nov 16, 2022
b35f6fd
homepage design started
Morgan-gh Nov 16, 2022
5df75ab
css page account, delegation et participent
ifanl-ibrahim Nov 16, 2022
39ea0ed
front css
ifanl-ibrahim Nov 16, 2022
58314fe
Prepa merge de la mort
max-machin Nov 16, 2022
4c69658
Homepage
Morgan-gh Nov 16, 2022
471bd98
commit final
ifanl-ibrahim Nov 16, 2022
ab24a46
maj affichage event différent foot
max-machin Nov 16, 2022
5967643
correction
ifanl-ibrahim Nov 16, 2022
b084f41
Fix node module
ifanl-ibrahim Nov 16, 2022
52a32e7
Merge branch 'main' into ifanl_ibrahim
ifanl-ibrahim Nov 16, 2022
baafc1e
Prepa merge général
max-machin Nov 16, 2022
2cfbb00
Merge branch ifanl
max-machin Nov 16, 2022
859a276
Prepa merge main total site
max-machin Nov 16, 2022
64df811
Envoie de data sur le online
max-machin Nov 16, 2022
b606e85
debug
max-machin Nov 16, 2022
f36f5a1
Retour ancien commit
max-machin Nov 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
16 changes: 16 additions & 0 deletions back/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
6 changes: 6 additions & 0 deletions back/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
HOST=0.0.0.0
PORT=1337
APP_KEYS="toBeModified1,toBeModified2"
API_TOKEN_SALT=tobemodified
ADMIN_JWT_SECRET=tobemodified
JWT_SECRET=tobemodified
3 changes: 3 additions & 0 deletions back/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.cache
build
**/node_modules/**
27 changes: 27 additions & 0 deletions back/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"env": {
"commonjs": true,
"es6": true,
"node": true,
"browser": false
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": false
},
"sourceType": "module"
},
"globals": {
"strapi": true
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-console": 0,
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
}
115 changes: 115 additions & 0 deletions back/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
############################
# OS X
############################

.DS_Store
.AppleDouble
.LSOverride
Icon
.Spotlight-V100
.Trashes
._*


############################
# Linux
############################

*~


############################
# Windows
############################

Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msm
*.msp


############################
# Packages
############################

*.7z
*.csv
*.dat
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.com
*.class
*.dll
*.exe
*.o
*.seed
*.so
*.swo
*.swp
*.swn
*.swm
*.out
*.pid


############################
# Logs and databases
############################

.tmp
*.log
*.sql
*.sqlite
*.sqlite3


############################
# Misc.
############################

*#
ssl
.idea
nbproject
public/uploads/*
!public/uploads/.gitkeep

############################
# Node.js
############################

lib-cov
lcov.info
pids
logs
results
node_modules
.node_history

############################
# Tests
############################

testApp
coverage

############################
# Strapi
############################

.env
license.txt
exports
*.cache
dist
build
.strapi-updater.json
57 changes: 57 additions & 0 deletions back/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 🚀 Getting started with Strapi

Strapi comes with a full featured [Command Line Interface](https://docs.strapi.io/developer-docs/latest/developer-resources/cli/CLI.html) (CLI) which lets you scaffold and manage your project in seconds.

### `develop`

Start your Strapi application with autoReload enabled. [Learn more](https://docs.strapi.io/developer-docs/latest/developer-resources/cli/CLI.html#strapi-develop)

```
npm run develop
# or
yarn develop
```

### `start`

Start your Strapi application with autoReload disabled. [Learn more](https://docs.strapi.io/developer-docs/latest/developer-resources/cli/CLI.html#strapi-start)

```
npm run start
# or
yarn start
```

### `build`

Build your admin panel. [Learn more](https://docs.strapi.io/developer-docs/latest/developer-resources/cli/CLI.html#strapi-build)

```
npm run build
# or
yarn build
```

## ⚙️ Deployment

Strapi gives you many possible deployment options for your project. Find the one that suits you on the [deployment section of the documentation](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/deployment.html).

## 📚 Learn more

- [Resource center](https://strapi.io/resource-center) - Strapi resource center.
- [Strapi documentation](https://docs.strapi.io) - Official Strapi documentation.
- [Strapi tutorials](https://strapi.io/tutorials) - List of tutorials made by the core team and the community.
- [Strapi blog](https://docs.strapi.io) - Official Strapi blog containing articles made by the Strapi team and the community.
- [Changelog](https://strapi.io/changelog) - Find out about the Strapi product updates, new features and general improvements.

Feel free to check out the [Strapi GitHub repository](https://github.com/strapi/strapi). Your feedback and contributions are welcome!

## ✨ Community

- [Discord](https://discord.strapi.io) - Come chat with the Strapi community including the core team.
- [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.
- [Awesome Strapi](https://github.com/strapi/awesome-strapi) - A curated list of awesome things related to Strapi.

---

<sub>🤫 Psst! [Strapi is hiring](https://strapi.io/careers).</sub>
8 changes: 8 additions & 0 deletions back/config/admin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = ({ env }) => ({
auth: {
secret: env('ADMIN_JWT_SECRET'),
},
apiToken: {
salt: env('API_TOKEN_SALT'),
},
});
7 changes: 7 additions & 0 deletions back/config/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
rest: {
defaultLimit: 25,
maxLimit: 100,
withCount: true,
},
};
11 changes: 11 additions & 0 deletions back/config/database.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const path = require('path');

module.exports = ({ env }) => ({
connection: {
client: 'sqlite',
connection: {
filename: path.join(__dirname, '..', env('DATABASE_FILENAME', '.tmp/data.db')),
},
useNullAsDefault: true,
},
});
12 changes: 12 additions & 0 deletions back/config/middlewares.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = [
'strapi::errors',
'strapi::security',
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];
7 changes: 7 additions & 0 deletions back/config/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
app: {
keys: env.array('APP_KEYS'),
},
});
Empty file.
Binary file added back/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions back/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "back",
"private": true,
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
},
"devDependencies": {},
"dependencies": {
"@strapi/plugin-i18n": "4.5.0",
"@strapi/plugin-users-permissions": "4.5.0",
"@strapi/strapi": "4.5.0",
"better-sqlite3": "7.4.6"
},
"author": {
"name": "A Strapi developer"
},
"strapi": {
"uuid": "9db7bc72-c3b8-4b0a-acde-91f83eac03e2"
},
"engines": {
"node": ">=14.19.1 <=18.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
}
3 changes: 3 additions & 0 deletions back/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# To prevent search engines from seeing the site altogether, uncomment the next two lines:
# User-Agent: *
# Disallow: /
Empty file added back/public/uploads/.gitkeep
Empty file.
39 changes: 39 additions & 0 deletions back/src/admin/app.example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const config = {
locales: [
// 'ar',
// 'fr',
// 'cs',
// 'de',
// 'dk',
// 'es',
// 'he',
// 'id',
// 'it',
// 'ja',
// 'ko',
// 'ms',
// 'nl',
// 'no',
// 'pl',
// 'pt-BR',
// 'pt',
// 'ru',
// 'sk',
// 'sv',
// 'th',
// 'tr',
// 'uk',
// 'vi',
// 'zh-Hans',
// 'zh',
],
};

const bootstrap = (app) => {
console.log(app);
};

export default {
config,
bootstrap,
};
9 changes: 9 additions & 0 deletions back/src/admin/webpack.config.example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/* eslint-disable no-unused-vars */
module.exports = (config, webpack) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
// Important: return the modified config
return config;
};
Empty file added back/src/api/.gitkeep
Empty file.
Loading