How to Run Framer JS on Windows
2 (mostly) hassle free ways to compile and run
Since releasing the Fluent Design Toolkit, there’s been a lot of interest in the Windows Framer Toolkit. Framer is a powerful tool that we use every day here at Microsoft, which may lead some to wonder How do you run Framer on Windows?
Framer Studio is only available for Mac. But since Framer’s code is open source, you can compile and run on Windows without much hassle (ok, a little bit). There are two options to do this. Option 1 is based on node.js, uses VS Code, and Gulp. We use this method a lot, especially since we create and use a lot of modules, and it offers full module support. Option 2 is easier, uses Atom, but has some limitations, especially with modules.
Option 1— Framer Boilerplate
- Install node.js
- Install Git (if you haven’t already)
- Install Gulp — Open up Command Prompt and type
npm install -g gulp-cli
. Gulp enables compiling a Framer project and viewing it in any browser. - Download Framer Boilerplate to a place that you’ll remember. You’ll be coming back to this for each Framer project you create. Framer Boilerplate is what does all the Framery magic.
- Copy the Framer Boilerplate files to your working directory. I put mine at
C:\src\[project-name]
- If you are using any Modules, put them in the
C:\src\[project-name]\app\modules\
directory. You’ll see we’ve already included some basic modules from the Windows Framer Toolkit. - In Command Prompt, browse to your project
cd \src\[project-name]
and typenpm install
. - Open up your project in VS Code. Because CoffeeScript files are whitespace dependent, it’s important to make sure your code editor has the correct whitespace and tab settings.
* Tab space: 4
* Tab type: hard - In Command Prompt, run a gulp server by typing
gulp
from the root of your project. - Browse to http://localhost:3000 and witness the magic!
Option 2 — atom-live-server
- Install Atom
- Type
control + ,
to get into Atom’s settings - Click on
+ Install
- Search for
atom-live-server
and install it - Open your Framer project’s
app.coffee
file in Atom - In Atom do
ctrl + alt +l
to run a server (or, find yourPackages
menu, and selectatom-live-server > start server
. It will automatically open your Framer project in your default browser. - To stop a server, in Atom do
ctrl + alt + q
(or, find yourPackage
menu, and selectatom-live-server > stop server
)
With atom-live-server, it might be good to create an empty Framer project from Framer Studio that you can use as a starting point for new projects. OR, you can copy/paste/rename existing projects.
More on Fluent Design System
Joe Day designs for Windows, does music and photography for fun, and is a PSIA certified ski instructor.
To stay in-the-know with Microsoft Design, follow us on Dribbble, Twitter and Facebook, or join our Windows Insider program. And if you are interested in joining our team, head over to aka.ms/DesignCareers.