https://github.com/cuongndc9/node-boilerplate
🌏🚀 A Node.js boilerplate with RESTful, GraphQL, Prisma, PostgreSQL and awesome tools.
https://github.com/cuongndc9/node-boilerplate
103cuong apollo docker graphql mongodb node node-boilerplate orm postgresql prisma rest-api stack
Last synced: 11 months ago
JSON representation
🌏🚀 A Node.js boilerplate with RESTful, GraphQL, Prisma, PostgreSQL and awesome tools.
- Host: GitHub
- URL: https://github.com/cuongndc9/node-boilerplate
- Owner: cuongndc9
- License: mit
- Created: 2019-08-12T02:50:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T13:50:12.000Z (about 6 years ago)
- Last Synced: 2025-03-15T06:28:12.890Z (over 1 year ago)
- Topics: 103cuong, apollo, docker, graphql, mongodb, node, node-boilerplate, orm, postgresql, prisma, rest-api, stack
- Language: JavaScript
- Homepage:
- Size: 354 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-boilerplate
[](https://hitsofcode.com/view/github/cuongw/node-boilerplate)
[](https://stackshare.io/cuongw/node-boilerplate)
[](https://github.com/cuongw/node-boilerplate/blob/master/LICENSE)
> 🌏🚀 A Node.js boilerplate with RESTful, GraphQL, Prisma, PostgreSQL and awesome tools.
## Features
- Using ESNext
- Setup Babel, ESLint, Prettier, Ava and Husky.
- Having Basic authentication and authorization.
- Setup a basic RESTful API.
- Integrating Graphql.
- Using Prisma and PostgreSQL.
## Stack

## Prepare
- [Node](https://nodejs.org/en/)
- [Yarn](https://yarnpkg.com/en/)
- [Docker](https://phoenixnap.com/kb/how-to-install-docker-on-ubuntu-18-04)
- [Docker Compose](https://docs.docker.com/compose/install/)
## How to use?
### Step 1: Clone this project and remove `.git` folder
```sh
$ git clone https://github.com/cuongw/node-boilerplate.git
$ cd node-boilerplate && rm -rf .git
```
### Step 2: Launch Prisma and the connected database
```sh
$ sudo docker-compose up -d
```
### Step 3: Deploy the Prisma datamodel and generate Prisma client
```sh
$ yarn prisma:deploy
```
### Step 4: Install dependencies and run the project
```sh
$ yarn
$ yarn start:dev
```
🙌 Awesome
## Contributors
[](https://sourcerer.io/fame/cuongw/cuongw/node-boilerplate/links/0)[](https://sourcerer.io/fame/cuongw/cuongw/node-boilerplate/links/1)[](https://sourcerer.io/fame/cuongw/cuongw/node-boilerplate/links/2)[](https://sourcerer.io/fame/cuongw/cuongw/node-boilerplate/links/3)[](https://sourcerer.io/fame/cuongw/cuongw/node-boilerplate/links/4)[](https://sourcerer.io/fame/cuongw/cuongw/node-boilerplate/links/5)[](https://sourcerer.io/fame/cuongw/cuongw/node-boilerplate/links/6)[](https://sourcerer.io/fame/cuongw/cuongw/node-boilerplate/links/7)
## License
MIT © [cuongw](https://github.com/cuongw)