- Create MySql database using DB schema or MySql dump from "/_doc" directory
- Setup access to your MySql server and DB in "/app/config/config.js" file
- Setup a Firebase account https://www.firebase.com and update credentials in config "/app/config/config.js" file
- Setup a Cloudinary account https://cloudinary.com and update url in config "/app/config/config.js" file
- Install NodeJs https://nodejs.org/ on your machine
- Install GIT http://git-scm.com/ on your machine
- Get project from Repo https://github.com/creoLIFE/restapi-contacts and save it to some folder [example ./your_folder_with_project/]
- Use NPM https://www.npmjs.com/ manager to install all necessary libraries [example ./your_folder_with_project/npm install]
- Run project [node app.js]
- Try to use example Postman https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en to do some queries to API [example GET http://localhost:8080/access_token/[email protected]/12345
- Run basic unit test. Before run please update access_token. [example ./your_folder_with_project/node_modules/.bin/falkor test/test.js]
creolife / restapi-contacts Goto Github PK
View Code? Open in Web Editor NEWRESTful API based on: express.js, firebase, mysql, orm, passport, cloudinary