[H]ackademy [O]pen-Source [P]rojects [E]valuator
$ git clone https://github.com/HackaIran/HOPE.git
$ cd HOPE/
$ npm install
$ npm run bundle
After complete installation, run this command to run HOPE server:
$ npm start
then you will have access to HOPE in your http://localhost:3000
npm start
- Runs express server over port 3000npm run start:watch
- Same asnpm start
but watches files for changes.npm run bundle
- Bundles source files using webpack.npm run bundle:watch
- Same asnpm run bundle
but watches files for changes.
If you'd prefer to run HOPE inside a Docker container, you may pull the image from Docker Hub or you could even build it using the Dockerfile included.
- Pull the image using
$ docker pull hackairan/hope
- Clone the repository or just the "docker-compose.yml" in the current directory.
- Use "docker-compose" to run the HOPE and MongoDB images and easily link them: (HOPE depends on MongoDB)
$ docker-compose up -d
The -d
flag starts the containers in the background and leaves them running. In order to stop the containers, execute:
$ docker-compose down
- To build the image using Dockerfile, get the "Dockerfile" or change directory to the cloned repository and execute the following command:
$ docker build -t hackairan/hope .
and then follow step 3.
BSD 3-Clause