Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.

z81/moonlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moonlight

//schema.js
import { String, Bool } from '../../types';

export default {
    todos: {
        text: String(30),
        done: Bool()
    }
};
// server.js
import { Schema, Config } from '../../';
import schema from './schema'

Config({
    database: {
        adapter: 'postgresql',
        host: '127.0.0.1',
        user: 'postgres',
        database: 'moon',
        password: ''
    },
    server: {
        port: 8088,
        dist: __dirname + '/../dist'
    }
});

Schema(schema);
//client.js

Run

npm install
npm run todomvc
open http://localhost:8088/todomvc.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published