Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dancespiele/listing-people-api
https://github.com/dancespiele/listing-people-api
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dancespiele/listing-people-api
- Owner: dancespiele
- Created: 2017-10-26T08:40:00.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-10T09:34:35.000Z (almost 7 years ago)
- Last Synced: 2024-10-10T05:35:23.953Z (28 days ago)
- Language: TypeScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Listing People Api
This is a backend example using [pyrite server framework](https://github.com/pyrite-framework/pyrite-server).## Requirements
* MongoDB
* Node
* Typescript## Download
`git clone [email protected]:dancespiele/listing-people-api.git`
## Install
Enter to the folder and execute:
```
npm install -g typescript
npm install -g nodemon
npm install
```## Settings
Create database in mongo with the name ***listingPeople***, create an user asigned to it and a collection ***people***.
Create a script file ***run.sh*** in root path of the project:
```
export SERVICE_PORT=8000
export MONGO_USER=YOUR USER
export MONGO_PASSWORD=YOUR PASSWORD
export MONGO_HOST=localhost
export MONGO_DATABASE=listingPeople
nodemon dist/app/index.js
```## RUN
`npm run watch`
## RUN INTEGRATIONS TEST
With the project runing:
`npm test`