Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WEBAPP_STARTER

This is a template for a simple Deno webapp project using Oak.

This is the starter project for Web App assignment in the Javascript + OpenAI course.

File Structure

.vscode configuration files for VS Code

src JavaScript source files

src/shared JS+OAI shared library code

.env-template template for .env file, which will hold your API keys

.gitignore tells git which files to ignore

README.md this file, info about the repo

Running

From the command line confirm that your current working directory is the root of the project.

pwd

Option 1: run the app directly

deno run -A src/main.js

Option 2: use the tesk defined in deno.json

deno task start

When you are done, shut it down by typing ctrl-c in the terminal.

Troubleshooting

error: AddrInUse: Address already in use This error can happen if your app exits without properly closing the server . You can fix this by killing the process that is using the port.

kill -9 $(lsof -t -i:8000)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages