Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ferrriii/infolearn-backend
backend for infolearn
https://github.com/ferrriii/infolearn-backend
Last synced: 3 days ago
JSON representation
backend for infolearn
- Host: GitHub
- URL: https://github.com/ferrriii/infolearn-backend
- Owner: ferrriii
- License: apache-2.0
- Created: 2019-11-12T08:08:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T00:44:50.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T13:56:57.055Z (over 1 year ago)
- Language: JavaScript
- Size: 1.7 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# InfoLearn Backend
InfoLearn is a social network for learning. You can publish short texts and InfoLearn repeats these texts for you to memorize them.This repository is the backend code in Nodejs. it proivdes all APIs for frontend.
![](resources/infolearn-demo.gif)
## Setup
Create an `.env` file in the root with below contents.
You also need a running MongoDB to connect.
```
PORT=80 #api port
MONGO_DB_URL=mongodb://localhost:27017/InfoLearn #database url
MONGO_TEST_DB_URL=mongodb://localhost:27017/InfoLearn-test #test db
DEBUG=true #show error messages or not
JWT_SECRET=secret123 #JWT pass phrase
```
then
```
npm install
```
See [InfoLearn frontend repositry](https://github.com/ferrriii/infolearn-frontend) for frontend.### Run
Make sure mongo server is up and then:
```
npm run start
```
### OR Use Docker
```
docker-compose up
```### Test
```
npm run test
```
### Check with Flow
```
npm run flow
```