grammatically

1.0.1 • Public • Published

##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:

Route Params Return
/signup email, username, password, repeat_password token
/signin email, password username, token, role

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

Readme

Keywords

Package Sidebar

Install

npm i grammatically

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

11.5 kB

Total Files

18

Last publish

Collaborators

  • savtym