Coder Social home page Coder Social logo

saurabharch / cookiecutter-express Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amritghimire/cookiecutter-express

0.0 1.0 0.0 181 KB

Cookiecutter for ExpressJS with mongoose, passportjs, ansible, circleci, sphinx, sentry setup.

Makefile 16.49% JavaScript 69.73% CSS 0.80% Batchfile 2.79% Python 7.08% HTML 3.11%

cookiecutter-express's Introduction

Cookiecutter Express

Features

  • Testing setup with mocha and supertest
  • CircleCI configuration for build, test and deploy script
  • Ansible playbook for remote setup and update
  • Sphinx_ docs: Documentation ready for generation with, for example, ReadTheDocs_
  • Detailed make file for remote update, build or run nodemon, webpack and other tool
  • Webpack, nodemon, handlebarjs, saas compilation, morgan logging preconfigured.
  • Sentry error tracking setup
  • Preconfigured passport js authentication with login required middleware
  • JSHint, csurf, flash, helmet and other standard applied.

See: Cookiecutter: https://github.com/audreyr/cookiecutter

Quickstart

Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.4.0 or higher)::

pip install -U cookiecutter

Generate a Python package project::

cookiecutter https://github.com/amritghimire/cookiecutter-express.git

Or if you prefer ssh version::

cookiecutter [email protected]:amritghimire/cookiecutter-express.git

Then:

  • Create a repo and put it there.
  • Add the repo to your CircleCI .
  • Run make setup to setup the required packages and steps.
  • Add a private key to circleci from project settings.
  • Add the key to authorizedkey in your server.
  • Add ANSIBLE_HOST_KEY_CHECKING =false environment variable in circleci.
  • Update fingerprint in .circleci/config.yml to the key you added in circleci
  • Install sphinx-autobuild to start building docs.
  • Read the generated Readme file for more detail.

Reference

  • project_slug : It is used as unique slug for the project in many place like apache config.
  • peoject_url : The production server for the project.
  • project_static_url : The cdn server for static files, specify same as project_url if otherwise.
  • app_title: Title of project
  • description : Description of project for package.json file.
  • year : Current year for LICENSE FILE
  • version : Version for package.json
  • secret_key : Secret key for signing the session cookie
  • remote_server: The remote server ip or hostname where ansible will be connecting to.
  • remote_user : The remote user to be logged in as.
  • port : Specify default port.
  • git_project : Git project url where the server will be updated from.

Fork This / Create Your Own

If you have differences in your preferred setup, I encourage you to fork this to create your own version. Or create your own; it doesn't strictly have to be a fork.

  • Once you have your own version working, add it to the Similar Cookiecutter Templates list above with a brief description.

  • It's up to you whether or not to rename your fork/own version. Do whatever you think sounds good.

Or Submit a Pull Request

I also accept pull requests on this, if they're small, atomic, and if they make my own packaging experience better.

cookiecutter-express's People

Contributors

amritghimire avatar

Watchers

James Cloos avatar

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.