1.0.1 • Published 6 years ago

grammatically v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

##Server

###Install First, you need to install postgres or using brew

brew update
brew doctor
brew install postgresql

and create database for Grammatically:

psql
CREATE DATABASE grammatically;

Also you should have nodejs with npm

Second, start migrations for database:

npm run db:up

Third, for start you need to run command:

npm run server

###Pulling a new version Refresh migrations:

npm run db:refresh

###Authorization For authorization needs to add to headers: Authorization: Bearer ${token}

###API You need to add /api/v1 to route.

For route /user:

RouteParamsReturn
/signupemail, username, password, repeat_passwordtoken
/signinemail, passwordusername, token, role

Example: /api/v1/user/signin with params email and password.