- run
npm install
- run
tsc
to compilets
tojs
- make sure mongo is running
npm start
ornode src/server.js
Please note that all js
fiels in the directory are autogenerated and should not be modified.
You will need to set the GOOGLE_CLIENT_ID
and GOOGLE_SECRET
environment
variables before authenticating.
The static front end part is in react and has to be compiled using npm run build
run inside the musicoin-frontend folder. Once this is done, it has to be manually moved from there to src/overview/
. To test the frontend part of it as a standalone, run yarn build
and yarn start
over at musicoin-frontend
. To update the submodule recursive stuff, git submodule update --recursive
If you are using IntelliJ or Visual Studio Code, you should be able to turn on auto-compiling and hide the .js files from the file viewer.
http://www.typescriptlang.org/
There are a number of steps needed to get a new server up and running.
- Install build essentials, which installs
make
, which is required forletsencrypt-express
sudo apt-get install build-essential
- Create a user called
coiner
to run the app- the application files should be installed in coiner's home dir
- Install authbind
sudo apt install authbind
- Setup authbind for user coiner on port 443. This allows the coiner user to start node and grab ports 80 and 443, which normally needs to be done by root
sudo touch /etc/authbind/byport/443
sudo chown coiner /etc/authbind/byport/443
sudo chmod 755 /etc/authbind/byport/443
- Setup authbind for user coiner on port 80
sudo touch /etc/authbind/byport/80
sudo chown coiner /etc/authbind/byport/80
sudo chmod 755 /etc/authbind/byport/80
- See
/scripts/deploy
for Jenkins configurations
Checkout Jenkins log for most faults. Worst case, checkout the server log and revert as quickly as possible to avoid downtime