Giter Club home page Giter Club logo

expressboilerplate's Introduction

Express boilerplate

ย 

An Express application ready to use -and extend- in seconds!

This is a basic setup and it's intended for making the initial application architecture process much faster and easier.

Setup

  1. Make you have access to MongoDB (local or remote, does not matter),
  2. clone this repository,
  3. install what's needed: npm i,
  4. copy .env.sample to .env (change the values, if needed),
  5. build the static assets (these are located in /source): npm run build,
  6. run the application: npm start

Note: Building the static assets will, by dedault, yield a boilerplate.css.min and a boilerplate.js.min file (in their respective folders). However, you can change the name of the output file by passing the name to the build command; npm run build -- -out=... -where out will be the name of the output files. (Also, remember to change the file name in the views where these static assets are being used.)

Done

Visit http://localhost:9000 (Unless you changed the port in your .env file)

Practice

  • Take a look at /app/core/controllers/cities.js and /app/core/controllers/users.js, they both implement some basic CRUD logic.
  • Create forms in their respective views (/app/core/views/) that allow you to create users and cities.
  • Implement delete methods for both entities.
  • Submit a pull request (Describe what you did and why you did it.)

Happy learning.

Contribute

fork https://github.com/aichholzer/ExpressBoilerplate/

License

MIT

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.