Code Monkey home page Code Monkey logo

ttp-crud-server's Introduction

TTP CRUD Project - Express Server

Quick Start

To start up dev server with nodemon:

# Run the appropriate command based on your system:
# On Mac/Linux:
npm run dev
# On Windows:
npm run dev_windows

Please make sure to create a .env file and save the LOCAL_DATABASE_PASSWORD variable if you are working locally.

LOCAL_DATABASE_PASSWORD=somePassword123

If you have no password, please pass an empty string in single-quotes like so:

LOCAL_DATABASE_PASSWORD=''

Getting Started

You can either:

Clone repo

Clone the repo and set up with your own GitHub account

Express Generator

You can use this Express Generator command, indicating the directory to build your project in instead of my-app:

npx express-generator --no-view --git my-app

It will not set a template engine (no need since you're creating an API). It will also create a .gitignore file for you.

Move into the directory and install dependencies

cd my-app
npm install

This is a good point to initialize a git repository and make your initial commit.

Install these dependencies via npm install

npm i compression dotenv helmet pgtools sequelize

Nodemon

I recommend installing nodemon

npm i --save-dev nodemon

Add the following to the list of scripts in package.json:

"dev": "npx nodemon ./bin/www"

Nodemon will automatically reload the server when file changes are detected.

npm run dev

ttp-crud-server's People

Contributors

ajlapid718 avatar janmarkusmilan avatar shahidsarker avatar

Watchers

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