Back-end API framework for colleges.
- Clone the repository
git clone https://github.com/ccfcet/karma
- Install node, npm and nodemon globally.
- Run
npm install
-
Rename
config.example.json
file inside./lib/data/config/
toconfig.json
and fill the database information whilst creating the necessary databases on your MySQL server. -
In case you get an error like
npm ERR! Failed at the [email protected] install script
, installbuild-tools
for your system.
# install dependencies (development)
npm install
# install dependencies (production)
npm install --production
# serve with live reload at localhost:3000 (development)
# includes nodemon and eslint
npm run dev
# serve in a production environment
npm start
# run eslint
npm run lint
# run eslint with --fix flag
npm run lint--fix
- Run
grunt apidoc
and anapidoc/
folder will be created insidedocs
folder in the project's root. - Go to that folder and open
index.html
and access the API documentation.
Contributions are always welcome. Please take notice of the LICENSE and NOTICE files. Any commit to the repository implies you agree with the conditions specified in the files.
Enabling CORS securely.