Coder Social home page Coder Social logo

catstack's Introduction

A starter webpack project for React, Redux, Express and Knex

This is a rad base for starting a new full-stack project, or just as reference for how to do things the Harrison way (which is with absolutely no test folder, I'll leave that one to Alan)

  • Fork this repo to your github
  • Rename your repo according to the app you're building
  • Clone your forked repo down
  • Run the following commands in your terminal
npm install
knex migrate:latest
knex seed:run

npm run dev for bundling, watch and nodemon

npm start only runs server (setup for heroku)

Heroku!!!

Creating your app

Create your app with heroku create [name]

You can check that this was successful by running heroku apps to view a list of your apps

Adding postgres

Add postgresql (hobby dev) to your app at https://dashboard.heroku.com/apps/[APP NAME HERE]/resources

Check that pg has been added by running heroku addons to ensure the postgresql db is on your app

Deploying!

I have created several npm scripts that will be useful for deploying your app to heroku easily.

npm run h:deploy will push your local master branch to your heroku app

npm run h:migrate will run your knex migrations on your deployed heroku app

npm run h:seed will run your seeds on your deployed app

If ever you need to rollback, you can also just use npm run h:rollback

Ta-Da!

Your app should be deployed!

I can add some exercises/comments to this repo if there is desire for such, but for now, hopefully this proves useful :)

catstack's People

Contributors

cici-chen avatar don-smith avatar harrison-symes avatar jon-atto-bennett avatar joshuavial avatar magda-gierg avatar natalie-perret avatar richchurcher avatar tony-luisi avatar

Stargazers

 avatar  avatar

Watchers

 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.