Andela societies is an app that avails information about socities at Andela (Invictus, iStelle, Phoenix and Sparks) to everyone at Andela. The app also enables more interaction between Andelans through Societies.
- React
- SCSS
- Redux
- NodeJS
- Webpack
- Jest
- Enzyme
- Install
Node JS
. - To clone, run
git clone https://github.com/AndelaOSP/andela-societies-frontend.git
. cd
into the root of the project directory.- Install
yarn
. - Run
yarn install
on the terminal to install dependecies. - Setup local development server.
-
In your terminal, execute the following command:
sudo nano /etc/hosts
-
or if you are using vim, execute the following command:
sudo vim /etc/hosts
Otherwise, you can open your hosts file in your editor of choice.
-
Add the following line to your
hosts
file:127.0.0.1 soc-dev.andela.com
-
Save changes and quit the editor.
- To start the application run
yarn start
Important note:
If you intend to contribute to this project, you need to install eslint
and ensure linting is working in your editor.
Unit tests - Run yarn test
on the terminal while within the project root directory. Unit testing is achieved through the use of jest
package. jest
is used to test javascript code in React applications.
To test the app in watch mode, Run yarn test:dev
. This listens to changes in your files and runs the tests as soon as there's a change in the files.
yarn build
builds the app for production.yarn serve
starts the app in production mode.
For any suggestions or contributions please do not hesistate to contact the owners of this repository.
Contributions to this project are welcomed by all, If you need to contribute, follow the steps below
- Fork the repository
- Follow Installation and Setup as explained earlier
- Create a branch off
develop
for the feature you wish to add - Make neccessary changes, commit and raise a pull request against develop, conventions can be found on the wiki page. Note when making contributions, please endevour to follow the Airbnb javascript style guide. Also make sure to follow the Engineering playbook for conventions.
See the andela-societies-frontend wiki
Package installation:
Use yarn
to install packages. Do not install packages using npm
. For more info, checkout this issue.
Follow the instructions on this link to run it.
In case of any errors ask the DevOps Engineer in the team