GithubHelp home page GithubHelp logo

node-docker-cli's Introduction

Nodejs Docker Starter Template

CLI Command

This repository contains a CLI (Command-Line Interface) tool that allows you to quickly create a new Node.js project using the provided starter template. It is designed to save you time on project setup and configuration, so you can focus on building your application.

Prerequirements

  1. Node.js (v14 or heigher)
  2. Docker

Features

  • Typescript for type safety
  • PostgresQL for data storage
  • Prisma for ORM
  • Docker

Installation

To use the CLI command, you can install it globally using npm. Open your terminal or command prompt and run the following command:


npx nodejs-docker-starter your_file_name

Usage

Once your project directory is created, you can navigate into it and start working on your Node.js application. The starter template provides a solid foundation for building robust backend applications using Node.js, Express, Prisma, PostgreSQL, Docker, and TypeScript.

To run your application, you will need to install the project dependencies. In the project directory, run:


pnpm install

Note :After installing all the required dependencied you may need to change database name based on your preference in the -- docker-compose.yml

After that you can run the server in the docker by running the following command


docker compose up

To generate migration for your prisma schema you can just run the following command :


pnpm docker:db:migrate

After successful migration you may need to restart to docker container by running :


pnpm rebuild:be

Note : Refer to the scripts inside package.json for better understanding

Contributing

If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request. Your contributions are welcome and appreciated!

License

This project is licensed under the GPL-3.0 LICENSE which means you can use it freely for personal or commercial purposes.

node-docker-cli's People

Contributors

munavvarsinan avatar

Stargazers

 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.