nest-knex
uses Typescript, Node.js and mysql with famous library objectionjs and knex.
The quickest way to get started with nest-mysql server use github
repository and clone as shown below:
# clone repository
$ git clone https://github.com/AlxPatidar/nest-knex.git server
# change directory to server folder
$ cd server
Install dependencies and devDependencies:
$ yarn install / npm install
Configuration environment and change basic credentials:
$ cp .env.example .env
$ mysql -u root -p
-> password:- ****
$ create database knex_mysql
Start the nest server:
$ yarn start / npm start
Start the nest development server:
$ yarn start:dev / npm start:dev
yarn build
- Transpile TypeScript codeyarn start
- Run applicationyarn start:dev
- Run application in development modeyarn run format
- Formate code with pritteryarn run lint
- Run for typescript lintingyarn run test
- Run for testyarn run migrate:make
- Run for create migration with name of migrationyarn run migrate:latest
- Run for migrate and create schemayarn run migrate:rollback
- Run for rollback batch migrationyarn run seed:make
- Run for create seed file to seeding databaseyarn run seed:run
- Run for seeding database
- #Nest for node js framework
- #mysql for database
- #Objectionjs
- #Knexjs
- #Jest for Official testing tools
- #Yarn for Official package manager
- #CodeEditor Official text editor
- #StackOverflow thanks for helping and provide solution on every problem
- Author - Ashok Patidar
- Stackoverflow - Ashok
- Github - Alx Patidar
Nest is MIT licensed.