Commit e3981cfc authored by alain's avatar alain 🐙
Browse files

initial commit

parents
Pipeline #275 canceled with stages
File added
FROM node:14.5
WORKDIR /usr/src/app
COPY . .
RUN yarn global add gatsby-cli
RUN cd backend
RUN strapi start
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
HOST=0.0.0.0
PORT=1337
.cache
build
**/node_modules/**
{
"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"]
}
}
############################
# 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
exports
.cache
build
# Strapi application
A quick description of your strapi application
{
"routes": [
{
"method": "GET",
"path": "/about",
"handler": "about.find",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/about",
"handler": "about.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/about",
"handler": "about.delete",
"config": {
"policies": []
}
}
]
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module.exports = {};
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module.exports = {};
{
"kind": "singleType",
"collectionName": "abouts",
"info": {
"name": "About"
},
"options": {
"increments": true,
"timestamps": true
},
"attributes": {
"title": {
"type": "string"
}
}
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services)
* to customize this service
*/
module.exports = {};
{
"routes": [
{
"method": "GET",
"path": "/domains",
"handler": "domain.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/domains/count",
"handler": "domain.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/domains/:id",
"handler": "domain.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/domains",
"handler": "domain.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/domains/:id",
"handler": "domain.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/domains/:id",
"handler": "domain.delete",
"config": {
"policies": []
}
}
]
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module.exports = {};
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module.exports = {
lifecycles: {
async afterUpdate() {
strapi.services.util.build()
},
},
};
{
"kind": "collectionType",
"collectionName": "domains",
"info": {
"name": "Domain"
},
"options": {
"increments": true,
"timestamps": true
},
"attributes": {
"title": {
"type": "string",
"required": true,
"unique": true
},
"description": {
"type": "richtext"
}
}
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services)
* to customize this service
*/
module.exports = {};
{
"routes": [
{
"method": "GET",
"path": "/solutions",
"handler": "solution.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/solutions/count",
"handler": "solution.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/solutions/:id",
"handler": "solution.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/solutions",
"handler": "solution.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/solutions/:id",
"handler": "solution.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/solutions/:id",
"handler": "solution.delete",
"config": {
"policies": []
}
}
]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment