Git Product home page Git Product logo

express-skeleton's Introduction

Express Skeleton

This is a skeleton for a backend web application using Express.js. It is intended to be used as a starting point for new projects. It is not intended to be a production-ready application.

Using the Skeleton

  1. Fork the repository on GitHub.

  2. Clone the repository to your local machine.

    git clone <repository-url> <directory-name>
    # Example: git clone https://github.com/9-5-pursuit/express-skeleton my-app-backend
  3. Change into the directory.

    cd <directory-name>
    # Example: cd my-app-backend
  4. Setup a new remote repository on Github so that you don't overwrite the skeleton repository.

  5. Link your local repository to your new remote repository.

    git remote set-url origin <new-repository-url>
  6. Make a small change, then create a new commit to test the remote repository.

    git add .
    git commit -m "Update remote repository"
    git push

Express Setup

Prerequisites

  • Node.js - JavaScript runtime
  • npm - Package manager

Getting Started

# Install dependencies
npm install

# Start the development server
npm run dev

Note: The development server will restart automatically when changes are made to the source code as long as you use Nodemon to start the server and leave the server running. If you stop the server, you will need to restart it manually. We've setup a script in the package.json file to make this the default behavior when you run npm run dev.

Built With

  • Express - Web framework
  • dotenv - Environment variables
  • nodemon - Development server
  • cors - Cross-origin resource sharing
  • morgan - HTTP request logger

Additional Notes

Since this is a skeleton, the .env file is included in the repository. This is not recommended for production applications. The .env file should be added to the .gitignore file and the environment variables should be set in the production environment.

express-skeleton's People

Contributors

apinzone-pursuit 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.