-
Notifications
You must be signed in to change notification settings - Fork 535
Server
- Navigate to the
./server/tinylicious
directory and build it.
npm i
npm run build
NOTE: You will get some errors on install from kafka-node
if you don't have Python, Visual Studio, and Desktop Development with C++ Workload installed – these are safe to ignore, since they are from an optional dependency (more info).
- If the build succeeds, start the
tinylicious
server
npm start
- Now, we can run components against this server. We will use
Clicker
as an example. Navigate to theClicker
directory and start the component using thestart:tinylicious
command
cd ./components/examples/clicker
npm run start:tinylicious
This command is running the following script for reference
webpack-dev-server --config webpack.config.js --package package.json --env.mode tinylicious
- Now navigate to http://localhost:8080 to see
Clicker
running ontinylicious
NOTE: tinylicious
stores persisted data on your filesystem at /var/lib/tinylicious
. On Windows, this will be C:/var/lib/tinylicious
. If you want to clear everything and start fresh, then shut down tinylicious
and delete that folder. The next time you start tinylicious
everything should be as new.
This is the same server as https://www.wu2.prague.office-int.com/ (and other instances). This includes the server backend (the Fluid ordering service, etc.) and the web front-end gateway This will download and build the image that is deployed, and run it locally.
- Go to Docker settings and allocate at least 4 cores and 4GB Memory.
-
Navigate to the repo root. And run
npm start
(No need to build) -
If this succeeds, you can open your browser (preferably Chrome or new Microsoft Edge for ease of debugging) and navigate to http://localhost:3000 and test a component against it
- Navigate to the getkeys directory from the repo root and run the following commands which will ask you to authenticate
cd tools/getkeys
npm i
npm start
-
After you authenticate, start the docker
routerlicious
server (see instructions above) -
Navigate to the component directory (i.e.
Clicker
) from the root and run the following
cd components/examples/clicker
npm run start:docker
- Navigate to http://localhost:8080 and the component should be running against the local Docker
routerlicious
server
- Navigate to the getkeys directory from the repo root and run the following commands which will ask you to authenticate
cd tools/getkeys
npm i
npm start
- Navigate to the component directory (i.e.
Clicker
) from the root and run the following
cd components/examples/clicker
npm run start:r11s
- Navigate to http://localhost:8080 and the component should be running against the deployed
routerlicious
server
This wiki is focused on contributing to the Fluid Framework codebase.
For information on using Fluid Framework or building applications on it, please refer to fluidframework.com.
- Submitting Bugs and Feature Requests
-
Contributing to the Repo
- Repo Basics
- Common Workflows and Patterns
- Managing dependencies
- Client Code
- Server Code
- PR Guidelines
- CI Pipelines
- Breaking vs Non-Breaking Changes
- Branches, Versions, and Releases
- Compatibility & Versioning
- Testing
- Debugging
- npm package scopes
- Maintaining API support levels
- Developer Tooling Maintenance
- API Deprecation
- Working with the Website (fluidframework.com)
- Coding Guidelines
- Documentation Guidelines
- CLA