Support education and innovation in New Zealand Schools with industry experts and volunteers in the classrooms
You don't need permission to help - its open.
This is an open source project and you are welcome to contribute at any level you feel comfortable. Find out more about the project at the Website and then...
- Say hi or ask questions in the gitter chat room above
- email team@voluntari.ly to tell us about yourself
- Start Reading documentation
- Build the code - below
- Add yourself to the CONTRIBUTORS file, check it in and send us a pull request - see this ticket VP-82
- Come along to a Drop in Wednesday Afternoon or after work social at our Auckland office
- Come along to one of our developer events - see http://voluntari.ly for the latest details.
Voluntari.ly is based on the MERN (MongoDB, Express, React+Redux, Node) software stack but also uses next.js to keep things clean and simple.
and everything should work out of the box. There are two choices:
- install NodeJS and MongoDB and run locally.
- install Docker and run in a container.
You will need:
-
git You may already have it. Verify with
git --version
-
nodejs. Verify this with
node -v
which should return a current version. e.g. v11.12.0
You will also need to be connected to the Internet and be prepared for some downloads. (sometimes corporate firewalls make this difficult - go get a coffee and use theirs.)
- MongoDB
or setup a free account in the cloud - but if you do this you will need to change the
MONGO_URL=mongodb://localhost:27017/vly-test
connection string in your environment or in package.json to point at your cloud URL.
For mac users brew install mongodb
should be all you need to do.
- start the mongodb service
mongod
git clone https://github.com/voluntarily/vly2.git
cd vly2
npm install
npm install may take several minutes as it pulls in all the dependent packages.
-
npm run dev
- starts the development server with hot reloading enabled -
npm run build
- bundles the code -
npm run test
- start the test runner -
npm run start
- runs production server -
npm run check-coverage
- generates test coverage report -
npm run lint
- runs standard to check for lint errors ( npm run fix to fix lint errors )
Once you see the message "Voluntari.ly is running on port: 3122! Be Awesome!" then you can open your browser at http://localhost:3122.
If you see the message "Please make sure Mongodb is installed and running!" then go back and start mongod.
Press control+C to exit the node application.
You can use this option if you quickly want to see what the application looks like.
You will need:
git clone https://github.com/voluntarily/vly2.git
cd vly2
npm install
docker-compose docker-compose.yml up -d --build
Note this may take a few minutes the first time you run it as it will download some images. Also once the command returns the services are still starting up so it will be a minute before you can visit the webpage.
Note In order to stop the root folder filling up I moved all the docker files to the Docker Subfolder. You can either run from root using the -f path or cd to the Docker folder and run there.
- Open your web browser at http://localhost:3122/
You will now be able to see the voluntari.ly application (if not then ask for help on our channel.
To halt the containers run:
docker-compose down
More information at Using Docker and Docker Compose