Mockup backend for the ViLLEPlug VSCode extension.
The backend is hosted on Vercel:
https://villebackend.vercel.app
Any changes to main branch are automatically deployed to Vercel.
To run the backend locally, install dependencies:
npm install express
npm install typescript ts-node @types/node @types/express --save-devIf you're deploying to Vercel, you'll also need:
npm install --save @vercel/nodeMake sure you also have node installed.
Clone the repository:
git clone https://github.com/leotamminen/VillebackendNavigate to the project directory:
cd VillebackendInstall dependencies:
npm install
npm install typescript ts-node @types/node @types/express --save-devStart the development server:
npm run devAnd go to localhost:3000/
Here are examples of how to interact with the backend:
-
List all courses:
https://villebackend.vercel.app/courses -
Get a specific course:
https://villebackend.vercel.app/courses/1 -
List all exercises for a specific course:
https://villebackend.vercel.app/courses/1/exercises -
Get a specific exercise by course and exercise ID (e.g., course 1, exercise 101):
https://villebackend.vercel.app/courses/1/exercises/101