Git Product home page Git Product logo

base-express's Introduction

Your starting point for your next great web app

The purpose for this repository is to serve as a base project for your next Node and Express web app. Clone it and you are ready to go.

It will provide you with a simple but solid structure on which to build on. We will do our best to keep it up to date with the latest node and express versions.

base-express's People

Contributors

fidanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

base-express's Issues

[Question] Large application structure

How to structure a large API REST (or application) that contains around 50 files ?

**By type like this : **
Controller
---- Module1
---- Module2
Models
---- Module1
---- Module2

**or by feature like this : **

Module1
---- Controller
---- Models
Module2
---- Controller
---- Models

Where is the best place for front-end src?

If /public folder consist built styles, js, bundels and other webpacked, gulped files, then where should I place src like less|sass|js ect.?
In some php frameworkes I saw something like ./Assets`` folder with all src, that supposed to be built to the ./public`.

Integrating the database

That's a very interesting structure, but I'm actually wondering how could a model be used alongside a module like Sequelize as in passing the actual Sequelize database instance to the model.
Any ideas?

Needs licence

If this repo is meant to be a starting point for other apps then it ought to have a licence. AL2 or MIT etc would be good as they are commercial friendly.

req.path is unavailable

Because of the way in which your application is structured, the use of req.path will always return /. Are there ways in which this can be overcome?

Great job btw ๐Ÿ˜„

update code to use ES6 and Node v6.

Hey! First I want to thank you for this awesome base-project ๐Ÿ‘

Do you think you could eventually update it so that it uses ES6 standards (with all new features) and Node.js v.6.0.0? ๐Ÿ˜„

app.use(require('./controllers')) doesn't work

Hi,

i decided to learn node/express JS. And i want to begin with a good start, a good structure directly. And yours seems really fine.

I'm trying to adapt mine to yours, but i've few questions.

When I put this line "app.use(require('./controllers'))", the console said me "controller module doesn't exist" !
How does it work this middleware ?
if i understand, when you write this line, you "include" all controller file, right ?

Until now, i learned that all modules have to localize to node_modules folder. So, i suppose that the middleware tried to find controller.js in this folder.

Can you enlighten me ?

Thanks to share your knowledge,
Appreciate.

JL, from Belgium.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.