Neutron-Creative / Singlelink
Labels
Projects that are alternatives of or similar to Singlelink
Singlelink is the open-source micro-site platform.
Get started • Development • Deployment • Credits • Support • Related • License
Get started
There are a few pre-requisites you need to have before hosting Singlelink, seen below.
- Two NodeJS servers (ex: $5/mo DigitalOcean Droplet)
- A PostgreSQL database (ex: Free Heroku DBaaS)
Once you have the following established, it's time to begin installing & configuring your installation.
Client
# Clone repostiory to local device
git clone https://github.com/Neutron-Creative/Singlelink.git
# Enter client of new project
cd Singlelink
# Install necessary dependencies
npm install
sudo npm install -g nuxt-start
# Set API Url
export API_URL=<your-api-url>
# Optionally, customize your instance
export META_TITLE=<your-seo-meta-title>
export META_DESCRIPTION=<your-seo-meta-description>
export META_IMAGE=<your-meta-image>
export FAVICON=<your-favicon-url>
export HOSTNAME=<your-installation-hostname>
export APP_NAME=<your-app-name>
export ICON_URL=<your-icon-url>
export ICON_WIDTH=<your-icon-width>
export ORGANIZATION=<your-organization>
export FREE_SIGNUP=<is-freesignup-enabled>
# Run first build
npm run build
# Start your server
npm start
Server
# Clone repostiory to local device (don't need to repeat if performed previously for client)
git clone https://github.com/Neutron-Creative/Singlelink.git
# Enter client of new project
cd Singlelink/server
# Install necessary dependencies
npm install
# Generate config from example
cp src/config.example.js src/config.js
# Modify config.js (set API domain to localhost & client domain as neccessary)
vim config.js
# Install necessary dev dependencies
sudo npm install -g forever nodemon
# Start your server
forever start index.js
Development
Client
Develop on the client if you're looking to make changes to the interface or styles of the application.
Note, pay attention to the notice below. You'll need to build & start the client before each usage to have your changes reflect properly in the application.
# ---------------------------------------------------------------------------------- #
# NOTICE: Anytime you make changes, kill the server, rebuild, and restart as follows #
# ---------------------------------------------------------------------------------- #
## CD into Client
cd Singlelink/client
# Rebuild application (compiles .vue files into raw html, css, and js)
npm run build
# Restart server
npm run start
Server
Develop on the server if you're looking to make changes to the logic of the application.
Developing on the server is a bit simpler, in that there is no "rebuild" process. With nodemon, changes are reloaded live instantaneously.
## CD into Server
cd Singlelink/server
# Start nodemon
nodemon index.js
Deployment
Use the following instructions for deploying changes made locally to your production servers.
Note, before following the next steps - ensure you have pushed all changes to the git master branch!
Client
# SSH into server
ssh [email protected]<your-server-ip>
# Enter tmux session (if first time then tmux && cd Singlelink)
tmux attach
# Break existing client host session
# Not to be typed, press both keys simultaneously
# Ctrl + C
# Pull changes from remote origin master branch
git pull
# Rebuild Nuxt JS
npm run build
# Restart server session
nuxt-start ./ -H <your-client-ip> -p 80
# Exit tmux session
# Not to be typed, press both keys simultaneously
# Ctrl + b
# Afterwhich, press the following key
# d
# Exit server, changes are deployed!
Server
# SSH into server
ssh [email protected]<your-server-ip>
# Enter correct directory
cd ~/Singlelink/server/
# Pull latest changes from git
git pull
# Restart server with changes (if first time then forever start index.js)
forever restart index.js
# Exit server, changes are deployed!
Singlelink was built by the following individuals. Credits
- Jim Bisenius (@jim_bisenius)
- Andrew Boyle (@fahlomi)
- Navid Kabir (@navidk0)
- Manuhe Abebe (@manuhegabebe)
Need help? Our Supportcommunity support is online 9AM-5PM EST M-F, and our enterprise support team is available 24/7/365 via (email or phone). Don't hesitate to get in touch, we love to help and we're often able to resolve issues within the hour!
Additionally, we've listed a few frequently asked questions below.
Help, my API isn't working!
Often, this is caused by an incomplete config.js file in Singlelink/server/config.js, be sure this is complete!
My client isn't working properly!
This is most often caused by an incomplete/incorrect build, with missing environment variables or something of the like. To fix, ensure that the $API_URL environment variable is properly set on your client server, and run npm run build inside your client directory to manually rebuild the project.
How can I host this on Netlify?
Unfortunately, we discontinued static platform support in late 2020 when moving to v2.0 to gain features such as dynamic open-graph images, search engine optimization, alongside custom meta data.
When will you have x feature?
Check our roadmap! We're regularly adding new features, and list our most up-to-date plans on Github.
I'm having trouble installing Singlelink. Can I pay you to install & it for me?
Yes! As of January 2020, you can reach out to [email protected] and we'll be glad to help you get set up (incurs $100 install + $35/mo hosting fees). We offer full installation, management, and maintenance services for Enterprise clients starting at just $35/mo.
How can I suggest a feature/report a bug?
The Github issue tracker is the best place to do that! No matter your experience & ability creating Github issues, this is the best way for us to see & respond quickly to your requests.
Do you have a community I can join?
Yes! We're actively daily on Discord and would love to have you!
Related
Singlelink is Neutron Creative product, created and hosted free of charge in the mission of open-source. To learn more about our mission, visit neutroncreative.com
Be sure to check out our other products as well!
- Capture, Simplified screenshot API (https://capture.neutron.so)
- Sponsorware, Sell software with Github Sponsors (https://sponsorware.neutron.so)
- Cowlytics, Real-time Stripe analytics & forcesting for SaaS (https://www.cowlytics.co)
- Neutron, Faster websites in one-click (https://neutroncreative.com)