Application structure for new adonis app, think of it as scaffolding a new project

Overview

AdonisJs Application

This repo is the pre-configured project structure to be used for creating ambitious web servers using AdonisJs.

Make sure to star the official framework repo or tweet on twitter 👋

Story

One day a 👦 wanted to write a web application to slowly turn it into a business and make some 💰 for better living. Being a Javascript lover, he decided to go with Node.js.

Hosting Node.js applications are cheap and offers lots of mordern programming concepts to build realtime data rich applications.

He was so excited and full of energy to build this application and share it with the world. But soon his dreams started struggling with the amount of decisions he has to make, just to build an MVP of his idea. These decisions were not even related to the business and was about.

  1. How should I structure my application?
  2. Why do I need to download 20 modules just to start an HTTP server, parse request body and upload files.
  3. How should I manage the authentication on website, and expose public API for others to interact with the data?
  4. What do I need to do to secure my application from web attacks and how to handle CORS?
  5. Why do I have ton of require statements everywhere?
  6. How the heck should I test my code? I am having hard time mocking dependencies.
  7. WHY THE 🐟 there are no standards to write some code. Hell I am not going to write this application and going for a walk.

Not Anymore

This is so frustrating. Node.js is a beautiful language but all of the above questions have never been answered together. We all love writing small concise modules but business are not created by downloading 20 modules.

Developers needs productive tools, so that they can focus on what matters, and not on downloading & finding the best ways to combine these small modules.

AdonisJs

AdonisJs is a beautiful framework with pre-configured answers to all of your questions. We not only created this framework, but validated the features of framework with realtime problems and still improving every bit, so that you have to write less and structured code.

This time a 👦 will write his ambitious application and will set the world on 🔥 . Don't hesitate to work on your ideas and we promise to improve the framework every ☀️ and 🌛 and YESSSS do not forget to star us on :octocat:

Comments
  • Added APP_NAME and NODE_ENV to app.js config file

    Added APP_NAME and NODE_ENV to app.js config file

    Similar to Laravel, I've added APP_NAME and NODE_ENV to the app.js config file.

    Including APP_NAME, allows an easy way to have the name of an app consistent throughout the app, rather than having to hard code it in.

    NODE_ENV removes the need to potentially use both Env and Config and condenses it down into just Config. A niche use case, but a use case none the less!

    Any problems, or suggestions, I'm all ears!

    Thanks again for the great framework! 💯

    opened by eNzyOfficial 6
  • Update standard to the latest version 🚀

    Update standard to the latest version 🚀

    Version 10.0.0-beta.0 of standard just got published.

    Dependency standard
    Current Version 8.6.0
    Type devDependency

    The version 10.0.0-beta.0 is not covered by your current version range.

    Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

    I recommend you look into these changes and try to get onto the latest version of standard. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


    Commits

    The new version differs by 79 commits .

    There are 79 commits in total. See the full diff.

    Not sure how things should work exactly?

    There is a collection of frequently asked questions and of course you may always ask my humans.


    Your Greenkeeper Bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 6
  • minor changes to config files

    minor changes to config files

    1- changed some security settings to make it more secure out-of-the-box 2- changed the data-upload limit for something more reasonable 3- added an env key for SESSION_DOMAIN for easier user exp 4- fixed some docs typos and made config files more consistent 5- added PATCH verb to csrf

    opened by ctf0 6
  • Update youch to the latest version 🚀

    Update youch to the latest version 🚀

    Version 2.0.0 of youch just got published.

    Dependency youch
    Current Version 1.0.1
    Type dependency

    The version 2.0.0 is not covered by your current version range.

    Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

    I recommend you look into these changes and try to get onto the latest version of youch. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


    Not sure how things should work exactly?

    There is a collection of frequently asked questions and of course you may always ask my humans.


    Your Greenkeeper Bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 2
  • chore(error): use error message instead of stack

    chore(error): use error message instead of stack

    Message is easier to read and understand instead of finding the message in the stack.

    It'll be easier for newcomers to know what is the problem. The stack is also not really helpfull.

    opened by RomainLanz 1
  • chore(scripts): rename the script to be more explicit

    chore(scripts): rename the script to be more explicit

    The current script name (dev & start) are too generic and can conflict if someone is using npm as a task launcher. Renaming them to serve & serve:dev is better in my opinion.

    opened by RomainLanz 1
  • [Feature] Integrate Laravel Elixir

    [Feature] Integrate Laravel Elixir

    This change integrates Laravel Elixir into the base AdonisJS app. It supports everything Elixir does (except features requiring VueJS libraries, as these have been excluded from devDependencies). Versioning is also supported, by adding mix.version(...) to gulpfile.js, though I have disabled this by default as the generated files are uniquely named and would contaminate the build folder. An alternative to this exclusion would be to hook the gulp build task in to npm run start, so that the versioned assets are built before the elixir filter is executed, without needing the versioned assets to be committed to the repository.

    I know you're not crazy about builders, because of the support expense. This seems like less of a problem since the filter is app-side, and Elixir is supported elsewhere. What do you think?

    Edit: I don't know the best way to handle the unversioned check (inside the filter). Lacking brain, I have made the exists check synchronous/blocking. Perhaps you could suggest an alternate approach, assuming you're not 100% against this feature to begin with...

    opened by assertchris 1
  • Set template package.json to be generic, private by default

    Set template package.json to be generic, private by default

    Not sure if this is where you want it, but I was surprised to see a default license and author and such when I created a new app. Also best practice to set private to true.

    opened by bmann 1
Releases(3.0.0)
  • 3.0.0(Aug 14, 2016)

    Adonis 3.0 release comes with a bunch of new features and breaking changes 2.0. Make sure to read the upgrade guide on official website under documentation.

    Source code(tar.gz)
    Source code(zip)
Owner
AdonisJS Framework
The Node.js Framework that prefers developer joy and stability over anything else.
AdonisJS Framework
Cross-platform project template using Electron and Angular with the Phaser game engine. Project has Flexbox integrated for easy and responsive organization of components around the Phaser canvas.

Coher3nTS Project This is an Angular project template with Phaser nested inside, set up to run with Electron. Cross-Platform & Responsive The template

Tim B 18 Dec 17, 2022
🍔 A Node.js Serverless Framework for front-end/full-stack developers. Build the application for next decade. Works on AWS, Alibaba Cloud, Tencent Cloud and traditional VM/Container. Super easy integrate with React and Vue. 🌈

Midway - 一个面向未来的云端一体 Node.js 框架 English | 简体中文 ?? 欢迎观看 Midway Serverless 2.0 发布会回放: https://www.bilibili.com/video/BV17A411T7Md 《Midway Serverless 发布

Midway.js 6.3k Jan 8, 2023
:evergreen_tree: Modern Web Application Framework for Node.js.

Trails is a modern, community-driven web application framework for Node.js. It builds on the pedigree of Rails and Grails to accelerate development by

Trails 1.7k Dec 19, 2022
:seedling: Next-Gen AI-Assisted Isomorphic Application Engine for Embedded, Console, Mobile, Server and Desktop

lychee.js Mono Repository Important Notes to follow through Installation Quirks: The lycheejs-engine Repository needs to be installed to the path /opt

Cookie Engineer 791 Dec 31, 2022
A template project for building high-performance, portable, and safe serverless functions in Vercel.

Tutorial | Demo for image processing | Demo for tensorflow This is a Next.js project bootstrapped with create-next-app. This project is aimed to demon

Second State 63 Dec 8, 2022
Meteor, the JavaScript App Platform

Meteor is an ultra-simple environment for building modern web applications. With Meteor you write apps: in modern JavaScript that send data over the w

Meteor 43.2k Jan 9, 2023
Application structure for new adonis app, think of it as scaffolding a new project

AdonisJs Application This repo is the pre-configured project structure to be used for creating ambitious web servers using AdonisJs. Make sure to star

AdonisJS Framework 375 Oct 15, 2022
⛵Generate a ready-to-use local docker environment for your Adonis application

Adonis Sail ⛵ Generate a ready-to-use local docker environment for your Adonis application Installation npm i --save-dev adonis-sail node ace configur

Julien Ripouteau 51 Nov 27, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
NoExGen is a node.js express application generator with modern folder structure, namespace/project mapping and much more! It contains preconfigured Settings and Routing files, ready to be used in any project.

Installation $ npm install -g noexgen Quick Start You can use Node Package Execution to create your node-express application as shown below: Create th

Souvik Sen 7 Oct 8, 2022
Next-gen mobile first analytics server (think Mixpanel, Google Analytics) with built-in encryption supporting HTTP2 and gRPC. Node.js, headless, API-only, horizontally scaleable.

Introduction to Awacs Next-gen behavior analysis server (think Mixpanel, Google Analytics) with built-in encryption supporting HTTP2 and gRPC. Node.js

Socketkit 52 Dec 19, 2022
Twitter recommends that the majority of developers start to think about migrating to v2 of the API

Passport-Twitter2.0 with PKCE Twitter recommends that the majority of developers start to think about migrating to v2 of the API. This package is a Pa

null 11 Dec 11, 2022
Did you think that dinosaurs were finished evolving?

Chrome Dino Game This is a recreation of everyone's favorite offline companion, google chrome dinosaur game, with the same classic monochrome interfac

Wasim Reja 8 Sep 6, 2022
This is an IFC wrapped on Three js based viewer, I think..

ifc-three-js-viewer Project description: This is an IFC wrapped on Three js based viewer, I think.. Features & Screenshots: A simple viewer for render

Oussama Bonnor 4 Dec 14, 2022
Copypaster Has your project structure gotten so complex that to add a new feature you need to copy

Copypaster Has your project structure gotten so complex that to add a new feature you need to copy, paste and rename tens or hundreds of files each ti

null 2 Nov 4, 2022
Scaffolding utility for vanilla-js

scaffold-static lets you automate the local development environment setup and build static sites (vanilla-JS) with ease. Installation npm install -g s

James George 117 Nov 11, 2022
Simple scaffolding for applications that produce SQS messages

sqs-producer Enqueues messages onto a given SQS queue Installation npm install sqs-producer Usage const { Producer } = require('sqs-producer'); // c

BBC 160 Dec 23, 2022
Scaffolding for a dapp built on Solana

?? Solana App Scaffold Scaffolding for a dapp built on Solana Quickstart git clone https://github.com/solana-labs/dapp-scaffold.git cd dapp-scaffold

Solana Foundation 1.4k Dec 30, 2022