Amber Framework
WebsiteBlogGithubDiscord
  • Introduction
  • Getting Started
  • Guides
    • Overview
    • Installation
    • Create New App
    • Directory Structure
    • Configuration
    • Docker
    • Controllers
      • Sessions
      • Request & Response Objects
      • Halt!
      • Respond With
      • Params
      • Cookies
      • Filters
      • Flash
      • Redirection
      • CSRF
    • Views
      • Basic View Helpers
      • Form Builder
    • Models
      • Granite
        • Granite's README
        • Migrations
        • Validations
        • Callbacks
        • Associations
        • Querying
        • Bulk Insertions
      • Jennifer
        • Jennifer Docs
        • Migrations
        • Models
    • Routing
      • Pipelines
      • Routes
    • Websockets
      • Channels
      • Sockets
      • JavaScript Client
    • Mailers
    • Testing
      • System Tests
  • Deployment
    • Manual Deploy
    • Digital Ocean
    • Heroku
    • Dokku
  • CLI
    • New
    • Recipes
    • Plugins
    • Generate
    • Database
    • Watch
    • Routes
    • Exec
    • Encrypt
  • Examples
    • Amber Auth
    • Crystal Debug
    • Minimal Configuration
  • Cookbook
    • From Scratch
    • Hello World
    • CORS
    • File Download
    • File Upload
    • Cookies
    • Authenticate
    • JSON API
    • JSON Mapping
    • WebSocket Chat
  • Troubleshooting
  • In Production
  • Contributing
  • Code of Conduct
  • HAVE A QUESTION?
    • Join the Discord
    • Follow on Twitter
    • Submit an issue
Powered by GitBook
On this page
  1. Guides

Directory Structure

Every Amber app is generated with a variety of default files and folders that make up the structure of the application. When you run amber new to create your application, you will see that the Amber CLI creates the entire directory structure for the application for you to use. The table below details out the variety of files and folders created in the generation process as well as their purpose.

File Folder
Purpose

config/

Contains configuration code for initializers, environments, routing, and deployment

db/

Contains database seeds and migrations.

lib/

Contains local installation of all dependent shards

public/

Location for html, css, and javascripts. This will be the default directory for static assets.

spec/

Location for application specification and tests

src/

Source code that composes your application

.encryption_key

This file is used to encrypt application secrets so they are not stored in source control

.amber.yml

This file is generated for Amber CLI and contains settings for the command line tools

package.json

Amber uses Webpack and NPM to compile static assets

.gitignore

This file tells git which files and patterns it should ignore.

docker-compose.yml

A file which defines services, networking, and drives for docker deployment.

Dockerfile

A file which contains all the commands needed to build a docker image.

README.md

A brief instruction manual about your application

PreviousCreate New AppNextConfiguration

Last updated 2 years ago