Skip to content

wejs-examples/we-example-api-todo

Repository files navigation

To-to list example project

Simple example project with To-do list

Video with how to make this example:

[Example video] (https://youtu.be/9Ou_8M28U18)

In this example we do:

1- Generate the app: yo wejs:app tasks 2- install npm modules: npm install 3- Create and configure the DB: mysql -u root -e 'create database todos_demo'; subl config/local.js 4- Load default locales we loadLocales 5- Generate todo crud: yo wejs:resource task 6- Change default task list template subl server/templates/task/find.hbs 7- Add simple search 8- Change controller to only show current authenticated user tasks subl server/controllers/task.js 9- Done Thanks all :) Get more magic in: http://wejs.org

Build With:

  • We.js

#How to install

  1. Clone this project
  2. Create one database for this project
  3. Enter in project folder
  4. Copy config/local.example to config/local.js
  5. Configure you database params
  6. install npm packages:
npm install
  1. start with:
we go

See http://wejs.org for we.js documentation

After deploy, generate one build with:

npm run build

This command will optimize your assets for production env.

Test

we test

License

MIT

About

A todolist example using We.js resource API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published