Skip to content

an improved starter template project I use for building backend servers in NodeJS

License

Notifications You must be signed in to change notification settings

stephnr/super-node-starter

Repository files navigation

Super Node Starter

Deploy

Details

A complete NodeJS server starter template. This template is designed to give any NodeJS project an extreme running start that includes some of the most common features vital to the Client/Server relationship model while providing various other tools, and resources for quickly building out any part of the server development stack.

Please refer to the CONTRIBUTING.md doc for any questions, concerns, or suggestions

Running For Development

a. Install dependencies

yarn install

b. Provide a .env file (copy the template) and provide you own values

cp .env.example .env

Create a local relational database in MySQL/Postgres/etc (see sequelize for supported dialects) and fill out the env values to connect there.

c. Run the database migrations

sequelize db:migrate

Note: You may want to install an editor plugin to automatically do this for you on file save, like atom-typescript

d. Run the app!

npm start

Local Docker Deployment

Build using Docker Compose by executing the following command:

npm run deploy