-
Notifications
You must be signed in to change notification settings - Fork 80
Installation without Docker
pawelmalak edited this page Sep 26, 2021
·
3 revisions
- Node.js
- npm (installed with Node)
- git
# clone repository
git clone https://github.com/pawelmalak/snippet-box
cd snippet-box
# install dependencies
npm run init
# server
npm run build
# client
npm run build --prefix=client
mkdir public data
mv client/build/* public
rm -rf src client
npm prune --production
PORT=5000 NODE_ENV=production node build/server.js
Expected initial output:
[2021-09-27 01:35:07.108 UTC+2] [INFO] db: Database connected
[2021-09-27 01:35:07.322 UTC+2] [INFO] db: Found pending migrations. Executing...
[2021-09-27 01:35:07.836 UTC+2] [INFO] server: Server is working on port 5000 in production mode
Snippet Box should be now running at localhost:5000