https://github.com/siristechnology/spanilla-api
Backend for Spanilla App
https://github.com/siristechnology/spanilla-api
apollo-server graphql mongodb mongoose newsfeed spanilla
Last synced: 3 months ago
JSON representation
Backend for Spanilla App
- Host: GitHub
- URL: https://github.com/siristechnology/spanilla-api
- Owner: siristechnology
- Created: 2019-09-10T23:32:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-12T23:05:59.000Z (over 4 years ago)
- Last Synced: 2025-02-15T08:15:26.058Z (8 months ago)
- Topics: apollo-server, graphql, mongodb, mongoose, newsfeed, spanilla
- Language: HTML
- Homepage:
- Size: 1.55 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spanilla Api backend
[](https://deepscan.io/dashboard#view=project&tid=5348&pid=7494&bid=77081)
[](https://codecov.io/gh/siristechnology/spanilla-api)Backend for Spanilla app
## Instructions on How to run locally
- Add environment variables as mentioned in .env.sample
- To start the api and jobs `yarn start`
- Go to `http://localhost:8080`## GraphQL Screenshot

## Most basic MongoDB commands (terminal)
- `show dbs` --to show all dbs
- `use inlineqadb` --to switch to inlineqadb
- `show collections` --to show all collections/tables
- `db.articles.find()` --to show all articles in the collection
- `db.articles.find({title: 'new title'})` --to show article/articles with title = 'new title'
- `db.articles.find({}, {title: 1})` --to show title field of all articles (no criteria)
- `db.articles.remove({})` --to remove all articles documents
- `db.articles.remove({title: 'new title'})` --to remove all articles with title = 'new title'
- `db.articles.update({_id:{$exists:true}}, { $set: {createdDate: '2019-01-01'}}, {multi: true})` --to update multiple articles with createdDate = '2019-01-01'