Susper is a decentralized Search Engine that uses the peer to peer system yacy and Apache Solr to crawl and index search results.
In this blog, we will talk about how to install Susper search engine locally and deploying it to Heroku (A cloud application platform).
How to clone the repository
- Go ahead and fork the repository
2. Get the clone of the forked version on your local machine using
|git clone https://github.com/<username>/susper.com.git|
3. Add upstream to synchronize repository using
|git remote add upstream https://github.com/fossasia/susper.com.git|
The Susper search application basically consists of the following :
- node –version >= 6
- npm –version >= 3
- First, we will need to install angular-cli by using the following command:
|npm install -g @angular/cli@latest|
2. After installing angular-cli we need to install our required node modules, so we will do that by using the following command:
3. Deploy locally by running this
Go to localhost:4200 where the application will be running locally.
How to Deploy Susper Search Engine to Heroku :
- We need to install Heroku on our machine. Type the following in your Linux terminal:
|wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh|
This installs the Heroku Toolbelt on your machine to access Heroku from the command line.
- Create a Procfile inside root directory and write
|web: ng serve|
- Next, we need to login to our Heroku server (assuming that you have already created an account).
Type the following in the terminal:
Enter your credentials and login.
- Once logged in we need to create a space on the Heroku server for our application. This is done with the following command
- Add nodejs buildpack to the app
|heroku buildpacks:add –index 1 heroku/nodejs|
- Then we deploy the code to Heroku.
|git push heroku master
git push heroku yourbranch:master # If you are in a different branch other than master
- Documentation | Heroku Dev Center: https://devcenter.heroku.com/categories/reference