Giter Site home page Giter Site logo

simple-express-typescript-boilerplate's Introduction

EXPRESS TYPESCRIPT BOILERPLATE

Reason for making this

I wanted a simple and easy to used boilderplate that just had basic functionality and easy to modify. I created models which give descriptions to endpoints.

HOW TO USE

There are three models for endpoints located in ./src/models. Routing is for a router model which takes in a express router. Route is a single route or endpoint. and Page returns a page.

Its important to note that under the ./src/api dir all the js files will be read so making sure there either Routing or Route modules is very important.

All api endpoints will start with /api to insure they are on different levels

All page endpoints will be on the main level. Note do not clash endpoints when making them.

How to start

This package uses yarn as its package manager. yarn install this will install all needed packages

After cp .env.example to a file called .env. this will contain your environment varibles

Running the program

use the command yarn run dev this will launch a dev server running the express server. It should refresh everytime you save a file

use the command yarn run prod this will compile the typescript into javascript for production and run the program.

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.