A starter project generated with the Express CLI
Install Node.js using insructions in this gist.
Clone the repo:
$ git clone [email protected]:MichaelCurrin/express-quickstart.git
$ cd express-quickstart
$ npm install
Start the local dev server.
$ npm start
Open in the browser:
- Homepage: http://localhost:3000
- Users endpoint: http://localhost:3000/users
Using the Express create app CLI.
See more info on the Expression generator in the docs.
Run the quickstart template generator. You can run this without installing it first.
$ npx express-generator
e.g.
$ mkdir my-app
$ cd my-app
$ npx express-generator
Or
$ npx express-generator my-app
$ cd my-app
For earlier versions of Node.js, install globally and then run.
$ npm install -g express-generator
$ express .
You can choose a view engine.
- Default:
jade
- Options:
ejs|hbs|hjs|jade|pug|twig|vash
- Example:
--view=pug
See the Pug.js homepage for how to use .pug
files.
The main
field does not seem to serve a purpose but it was added by the template I think so I've left it.
The entrypoint ends up actually being src/bin/www
as per the start
script command.
- Express.js homepage
- Node.js (Express) with TypeScript, Eslint, Jest, Prettier and Husky - Part 1 blog post
Released under MIT by @MichaelCurrin.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.