The Wayback Machine - https://web.archive.org/web/20230308074529/https://github.com/Microsoft/vscode-react-sample
Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

microsoft/vscode-react-sample

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
March 25, 2016 15:57
app
August 6, 2016 15:02
March 25, 2016 15:57
July 28, 2016 07:42
July 28, 2016 07:42
March 22, 2016 17:55
March 22, 2016 17:55
March 25, 2016 18:33
July 28, 2016 07:42
July 28, 2016 07:42

React / Node Todo Demo

This demo shows the core functionality of Visual Studio Code for Build 2016 session workshop.

todo demo

Getting Started

# clone repo
git clone https://github.com/Microsoft/vscode-react-sample.git react-todo

# navigate to repo
cd react-todo

# install deps
npm install

Backend

# Run in terminal
npm run serve

Instead you can also debug in Visual Studio Code with pressing the f5 key.

Frontend

# run in terminal
npm run dev

Run from Visual Studio Code by executing command (with f1 to open command palette) Run Task and selecting dev.

Database

No configuration should be necessary necessary. Data backend is simply a json file called todos.json in data/. If you run into any issues make sure todos.json has the following inside before starting the server. This will become more robust overtime.

{
    "todos": []
}

Not meant for production

There are a couple of issues to fix before this code base should be used as a model for a production ready application.

  • Swap out the file based data model for a real data backend.
  • Replace webpack dev server with an application server or serve up the app with the Node server.

Technologies