Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vicdata4/lit-course-server
Lit course server
https://github.com/vicdata4/lit-course-server
Last synced: 7 days ago
JSON representation
Lit course server
- Host: GitHub
- URL: https://github.com/vicdata4/lit-course-server
- Owner: vicdata4
- Created: 2020-11-05T23:02:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-24T15:56:38.000Z (almost 4 years ago)
- Last Synced: 2023-03-08T10:41:47.491Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.97 MB
- Stars: 2
- Watchers: 2
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](https://cdn.jsdelivr.net/gh/vicdata4/lit-course/assets/images/logo_.png?v=4&s=100)
## Quickstart
```
git clone https://github.com/vicdata4/lit-course-server.gitcd lit-course-server
``````
npm install
```Create config.js file
```js
module.exports = {
publicPath: '',
port: 3000,
origin: `http://localhost:${this.port}`,
mongodb: {
domain: 'localhost',
port: '27017'
}
};
```Replace the empty `publicPath` value `''` with your `absolute/path/to/your/lit-course/build`
Run server
```
npm run server
```From the browser
```
http://localhost:3000/
```## MongoDB Configuration
Run mongodb
```
./mongod --dbpath /absolute-path
``````
./mongo
```Create data base
```
use lit-course
```Create collection
```
db.createCollection('lit-data')
```