Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Latest commit

 

History

History
58 lines (42 loc) · 911 Bytes

README.md

File metadata and controls

58 lines (42 loc) · 911 Bytes

AssemblyScript Packages Website

Running the website

First install dependencies:

cd aspkg-bss
npm install
cd ../aspkg-server
npm install

In one terminal run the backend:

cd aspkg-server
node server

In another terminal build the frontend:

cd aspkg-bss
npm run dev

Now open http://localhost:3000 in your browser.

Gateways

/ Main Page /package.html Package example /404.html 404 error /login GitHub login redirect /search?query= Package search page

API

GET /api-login GitHub API OAuth verification GET /api-logout Log the user out GET /api-search?query= Search for package results (JSON) POST /api-publish Publish a package POST /api-update Update a package (Without a new version) POST /api-remove Remove a package

Pages-to-make

  • Login
  • Logout
  • Profile
  • Admin
  • Help

Todo

  • Add rate limiting
  • Convert scripting to AssemblyScript