code-prez-framework
v1.1.4
Published
complete package to get started with node js to build website
Downloads
4
Readme
Code Prez Framework
Step 1:
Install Nodemon and Redis.
Step 2:
Install code-prez-framework globally.
$ npm install code-prez-framework -g
$ codeprez create myapp
$ cd myapp
Step 3:
Update development.json file with required attributes like DB_USER, DB_PASSWORD, DB_NAME.
Step 4:
Install required NPM packages and Initialise knex (to create and run knex migrations) and run below commands.
$ npm install
$ npm install knex -g
$ knex init
Step 5:
Update knexfile.js file with required details for Mysql please see below code.
{
development: {
client: 'mysql',
connection: {
database: 'DB_NAME',
user: 'DB_USER',
password: 'DB_PASSWORD'
},
pool: {
min: 2,
max: 10
},
migrations: {
tableName: 'knex_migrations'
}
}
}
Step 6:
$ knex migrate:latest
$ knex seed:run
$ npm start
Dependencies
- Nodemon
- Redis
License
MIT