Skip to content

Commit

Permalink
Setup Next.js and Strapi
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkit committed Jul 1, 2020
1 parent f30125a commit cbe1799
Show file tree
Hide file tree
Showing 70 changed files with 14,952 additions and 139 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ cache.json
.builds
*.dotCover

## TODO: If you have NuGet Package Restore enabled, uncomment this
packages/

# Visual C++ cache files
ipch/
*.aps
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.16.3
7 changes: 0 additions & 7 deletions NuGet.config

This file was deleted.

Binary file removed NuGet.exe
Binary file not shown.
34 changes: 0 additions & 34 deletions brunch-config.js

This file was deleted.

15 changes: 0 additions & 15 deletions build.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions build.sh

This file was deleted.

22 changes: 0 additions & 22 deletions homepage.sln

This file was deleted.

24 changes: 0 additions & 24 deletions install.sh

This file was deleted.

24 changes: 11 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"private": true,
"name": "rikk.it",
"version": "0.0.0",
"author": {
"name": "Rikki Tooley",
"url": "http://rikk.it"
},
"version": "0.0.1",
"dependencies": {
"jquery": "3.5.0",
"jquery-cycle": "3.0.3",
Expand All @@ -9,16 +14,9 @@
"nprogress": "0.2.0"
},
"devDependencies": {
"auto-reload-brunch": "^2.0.0",
"bootstrap-sass": "^3.3.7",
"brunch": "^2.0.0",
"brunch-typescript": "^2.0.0",
"clean-css-brunch": "^2.0.0",
"css-brunch": "^2.0.0",
"javascript-brunch": "^2.0.0",
"promise": "^7.1.1",
"sass-brunch": "^2.6.3",
"typescript": "^2.1.4",
"uglify-js-brunch": "^2.0.0"
}
"typescript": "~3.9"
},
"workspaces": [
"packages/*"
]
}
16 changes: 16 additions & 0 deletions src/backend/.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
2 changes: 2 additions & 0 deletions src/backend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
HOST=0.0.0.0
PORT=1337
3 changes: 3 additions & 0 deletions src/backend/.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 src/backend/.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"]
}
}
113 changes: 113 additions & 0 deletions src/backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
############################
# 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
3 changes: 3 additions & 0 deletions src/backend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Strapi application

A quick description of your strapi application
Empty file added src/backend/api/.gitkeep
Empty file.
52 changes: 52 additions & 0 deletions src/backend/api/post/config/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/posts",
"handler": "post.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/posts/count",
"handler": "post.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/posts/:id",
"handler": "post.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/posts",
"handler": "post.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/posts/:id",
"handler": "post.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/posts/:id",
"handler": "post.delete",
"config": {
"policies": []
}
}
]
}
Loading

0 comments on commit cbe1799

Please sign in to comment.