├── .editorconfig
├── .env.example
├── .env.testing
├── .gitignore
├── README.md
├── ace
├── app
├── Controllers
│ └── Http
│ │ ├── PostController.js
│ │ ├── SessionController.js
│ │ └── UserController.js
├── Exceptions
│ └── Handler.js
├── Middleware
│ └── RedirectIfAuthenticated.js
└── Models
│ ├── Hooks
│ └── User.js
│ ├── Post.js
│ └── User.js
├── config
├── app.js
├── auth.js
├── bodyParser.js
├── cors.js
├── database.js
├── session.js
└── shield.js
├── database
├── factory.js
└── migrations
│ ├── 1503248427885_user.js
│ └── 1507839709797_post_schema.js
├── package-lock.json
├── package.json
├── postcss.config.js
├── resources
├── css
│ └── app.css
└── views
│ ├── components
│ ├── alert.edge
│ ├── input.edge
│ ├── label.edge
│ ├── panel.edge
│ └── textarea.edge
│ ├── layout
│ ├── app.edge
│ └── partials
│ │ ├── header.edge
│ │ └── hero.edge
│ ├── posts
│ ├── create.edge
│ ├── edit.edge
│ ├── index.edge
│ └── partials
│ │ ├── form.edge
│ │ └── post-card.edge
│ ├── session
│ └── create.edge
│ └── user
│ └── create.edge
├── server.js
├── start
├── app.js
├── kernel.js
└── routes.js
├── tailwind.config.js
├── test
└── functional
│ ├── authentication.spec.js
│ ├── delete-post.spec.js
│ ├── read-post.spec.js
│ ├── register.spec.js
│ ├── update-post.spec.js
│ └── write-post.spec.js
└── vowfile.js
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_size = 2
5 | indent_style = space
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
--------------------------------------------------------------------------------
/.env.example:
--------------------------------------------------------------------------------
1 | HOST=127.0.0.1
2 | PORT=3333
3 | NODE_ENV=development
4 | CACHE_VIEWS=false
5 | APP_KEY=
6 |
7 | DB_FILENAME=development.sqlite
8 |
9 | SESSION_DRIVER=cookie
10 |
--------------------------------------------------------------------------------
/.env.testing:
--------------------------------------------------------------------------------
1 | HOST=127.0.0.1
2 | PORT=4000
3 | NODE_ENV=testing
4 | CACHE_VIEWS=false
5 |
6 | DB_FILENAME=testing.sqlite
7 |
8 | ENABLE_CSRF_CHECK=false
9 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | tmp
3 | .env
4 | database/*.sqlite
5 | .cache
6 |
7 | # Don't push the public folder
8 | public
9 |
10 | # Keep only images
11 | !public/img
12 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Adonis Blog Demo :triangular_ruler:
2 |
3 | This repo contains an example application of the Adonis Framework. You must checkout the source code or the API docs on official website to learn more.
4 |
5 |
6 |
16 | @!yield($slot.main) 17 |
18 |9 | AdonisJS is a fully-featured MVC framework for Node.js. It takes care of most of your web development hassles, offering you a clean and stable API to build web apps or microservices. 10 |
11 |14 | Feel free to write whatever you want. 15 |
16 |$self
', getErrorFor('title'), hasErrorFor('title')) }} 26 |$self
', getErrorFor('body'), hasErrorFor('body')) }} 36 |