An open API service indexing awesome lists of open source software.

https://github.com/scriptnull/wordy-backend

backend for scriptnull/wordy
https://github.com/scriptnull/wordy-backend

Last synced: 4 months ago
JSON representation

backend for scriptnull/wordy

Awesome Lists containing this project

README

          

# wordy-backend
backend for scriptnull/wordy

# Prerequisites
- [Node.js](https://nodejs.org/en/)
- Grunt
```bash
npm install -g grunt-cli
```
- Sails.js
```bash
npm install -g sails
```
- [MongoDB](https://www.mongodb.org/)

# Running
Clone this repo
```bash
git clone https://github.com/scriptnull/wordy-backend.git
```
Run a mongoDB instance
```bash
mongod --dbpath "D:\mongoDbFiles"
```
Here all the files related to database will be autogenerated by sails app in the path "D:\mongoDbFiles"

change directory to ``wordy-backend/app``
```bash
npm install -g
```
Run the server
```bash
npm start
```
or
```bash
sails lift
```

The server will give an endpoint at ``POST http://localhost:1337/parse`` which will get a file with ``srcfile`` param in it and parse , insert to database and send back the response.