test project for Influencer Index
This project uses Feathers. An open source web framework for building modern real-time applications.
please run all steps ordinary.
-
Install your dependencies
cd path/to/influencer npm install // or yarn
-
configure database string (
mysql
key) frompath/to/influencer/config/default.json
-
Start your app for first time (this is required for building sql schemas before migration or seeding)
npm run dev // or yarn dev
-
run database migrations
npm run sequelize db:migrate // or yarn sequelize db:migrate
migration revert is possible anytime:
npm run sequelize db:migrate:undo // or yarn sequelize db:migrate:undo
-
Stop app and run seeder to seed database
npm run seed // or yarn seed
then run production environment with
npm run start // or yarn start
-
open localhost:3030 to see api home page.
-
open /docs to work with swagger play ground.
required cron job is scheduled to 0 7 * * MON
but it is possible to run it manually just for test case
Simply run npm test
and all your tests in the test/
directory will be run.
Feathers has a powerful command line interface. Here are a few things it can do:
$ npm install -g @feathersjs/cli # Install Feathers CLI
$ feathers generate service # Generate a new Service
$ feathers generate hook # Generate a new Hook
$ feathers help # Show all commands
For more information on all the things you can do with Feathers visit docs.feathersjs.com.