This repository provides a scaffold for creating a new Node.js API project with TypeScript, along with Docker-related files for containerization.
To use this scaffold, follow the steps below:
- Node.js (https://nodejs.org)
- Yarn package manager (https://yarnpkg.com)
- JQ (https://stedolan.github.io/jq/)
- Clone the repository:
git clone https://github.com/designa/node-scaffold.git
- Navigate to the project directory:
cd node-scaffold
- Run the install.sh script to install the designa-create command:
./install.sh
This script will move the designa-create.sh script to /usr/local/bin, set the execution permissions, and install it as the designa-create command.
- Create a new project:
designa-create <nome_do_projeto>
- Install project dependencies:
cd <nome_do_projeto>
yarn install
- Start the development server:
yarn dev
If you prefer to run the application using Docker, make sure you have Docker and Docker Compose installed on your system.
Build and run the Docker containers:
docker-compose up --build
This command will build the Docker image and start the containers for the Node.js application and PostgreSQL database.
Access the application in your browser at http://localhost:3000.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
MIT License
Please note that this complete README includes instructions on how to download the repository, use the designa-create.sh
script to initialize a new project, install dependencies, start the development server, and use Docker for containerization. It also includes sections for contributing and license information.
Feel free to customize the README further with additional information or specific details about your project as needed.