Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
/ aa-rs-spidermonkey Public archive

An early prototype for AppAssembly experimenting with a Spidermonkey JS serverside runtime. Archived after some experimentation around how the startup overhead and memory usage scales with script size.

Notifications You must be signed in to change notification settings

Feni/aa-rs-spidermonkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Install rust https://www.rust-lang.org/

Install cargo - rust package manager https://doc.rust-lang.org/cargo/getting-started/installation.html

Run the project

cargo run

cd /var/www/appassembly ln -s ~/code/appassembly/static/dist/static static ln -s ~/code/appassembly/templates templates

Setup db

sudo apt install postgresql postgresql-contrib


apt-get install libpq-dev

cargo install diesel_cli --no-default-features --features postgres


createuser --interactive --pwprompt
aasm

grant all on aasmdb to aasm

psql --user aasm --password -d aasmdb --host localhost

Diesel ORM

diesel setup
diesel migration generate create_routes
diesel migration run

Installing spidermonkey (mozjs) requires a few additional dependencies

ERROR: Could not find autoconf 2.13 sudo apt-get install autoconf2.13 Version number is important

About

An early prototype for AppAssembly experimenting with a Spidermonkey JS serverside runtime. Archived after some experimentation around how the startup overhead and memory usage scales with script size.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published