WebFund 2024F: Tutorial 9: Difference between revisions

From Soma-notes
No edit summary
Line 4: Line 4:


==Getting Started==
==Getting Started==
Run the following command: <tt>deno run -A -r https://fresh.deno.dev</tt>. Name your project "freshdemo" and say yes to using Tailwind (option 1). If you use VSCode, also say yes to that.
Run the following command:
  deno run -A -r https://fresh.deno.dev
Name your project "freshdemo" and say yes to using Tailwind (option 1). If you use VSCode, also say yes to that.


You should now have a "freshdemo" directory. Change into that directory (<tt>cd freshdemo</tt>) and then try running the server by typing <tt>deno task start</tt>. The server should start.
You should now have a "freshdemo" directory. Run the server as follows:
* If the server did not start, change to a different directory and download and extract [https://homeostasis.scs.carleton.ca/~soma/webfund-2024f/code/formdemo.zip freshdemo], as you have in previous tutorials. It should also be started with <tt>deno task start</tt>.
  cd freshdemo
  deno task start
 
The server should start.
 
If the server did not start, then instead do the following:
 
  cd ..
  rm -rf freshdemo    # clean up the old installation
 
  wget https://homeostasis.scs.carleton.ca/~soma/webfund-2024f/code/freshdemo.zip
  unzip freshdemo.zip
  cd freshdemo
  deno task start


==Tasks==
==Tasks==


# Edit deno.json so that you can run the app with the command <tt>deno task go</tt>.
# Edit deno.json so that you can run the app with the command <tt>deno task go</tt>.

Revision as of 14:43, 22 November 2024

This tutorial is not yet finalized.

In this tutorial you will be playing with freshdemo, the demo application of Deno's Fresh framework. Note that you do not need to download the code here, just follow the steps below.

Getting Started

Run the following command:

 deno run -A -r https://fresh.deno.dev

Name your project "freshdemo" and say yes to using Tailwind (option 1). If you use VSCode, also say yes to that.

You should now have a "freshdemo" directory. Run the server as follows:

 cd freshdemo
 deno task start

The server should start.

If the server did not start, then instead do the following:

 cd ..
 rm -rf freshdemo     # clean up the old installation
 wget https://homeostasis.scs.carleton.ca/~soma/webfund-2024f/code/freshdemo.zip
 unzip freshdemo.zip
 cd freshdemo
 deno task start

Tasks

  1. Edit deno.json so that you can run the app with the command deno task go.