/node-server-starter

This is a fast-start for an express server

Primary LanguageHTML

Express

Files and Folders

server.js

The entry point to the app. Starts the server, loads environment variables, and handles routing,

package.json

Handles dependencies

database.js

Handles the connection to the database. Contains functions that allow retrieval and submission of data

You will want to setup a postgres database, and replace the URL with one that works

/views/

Holds the pages

/views/partials

Holds page partials that are reused across other pages

/public/

Contains assets that are accessible to the public (js/css/images)

/routes/

Handles the URL routing