Coder Social home page Coder Social logo

tdubs42 / tdubs-fullstack-framework Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 335 KB

Uses express, CORS, helmet, and knex for the backend. Uses react and axios for the frontend.

JavaScript 97.51% HTML 2.03% CSS 0.46%
express cors helmet fullstack-javascript fullstack-development reactjs react-router knexjs-nodejs-db-migration

tdubs-fullstack-framework's Introduction

tdubs-fullstack-framework


Full-stack template for an:

  • express server protected by CORS and helmet
  • DB and REST API functionality powered by knex and sqlite3
  • a frontend served up with React and axios

Installation

Select "Use this template" and clone to your machine to continue

git clone <URL>

Usage

You will want to change "category" with whatever relates to your project. Following are the files that will need updating ( I prefer using ctrl + F and selecting all in a file to replace ) :

  • src/knexfile.js (db name)
  • src/category (dir name)
  • src/category/category-middleware.js
  • src/category/category-model.js
  • src/category/category-router.js
# install all server dependencies
cd src
npm i

# initiate eslint 
npx eslint --init

# install all client dependencies
cd client
npm i

# initiate eslint in client
npx eslint --init

# run server
cd src
npm run server

# run frontend
cd client
npm start

# frontend tests done with cypress
npm test

Don't forget to grab a taco after all of that hard work!

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

tdubs-fullstack-framework's People

Contributors

tdubs42 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.