Skip to content

SnurfDev/spaste-server

Repository files navigation

spaste-server

Server for the SPaste

Installation

This will build the server (with ui) and put it in dist as a standalone express app.

# Clone Repo
echo "Cloning and installing server (logs in install.log)"
git clone https://github.com/SnurfDev/spaste-server &> /dev/null
cd spaste-server

# Install Dependencies
npm install &>> install.log

# Build Server
npm run build &>> install.log

# Clone and build ui part
echo "Installing ui"
git clone https://github.com/SnurfDev/spaste-ui &>> ../install.log
cd spaste-ui
npm install &>> ../install.log
npm run build &>> ../install.log

echo "Cleaning Up"
# Copy Files and cleanup
mkdir ../dist/public/
cp -r ./dist/* ../dist/public/
cd ..
rm -rf ./spaste-ui

# Setup Credentials
mv .env.example .env
nano .env

Running

npm start

About

Server for SPaste Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published