Plexus aims to be a one stop solution for all kinds of digital events like Quizes. It specially targets the yearly online events happening in our college. This platform will allow other societies to host their events without any friction or technical know-how.
A. Setting Up the server -
- Install heroku-cli with
npm i -g heroku-cli
. - Install nodemon with
npm i -g nodemon
. - Run
npm i
to install the server-side dependencies. - Run
cp .env.example .env
to create.env
file, open it and fill the credentials.
B. Setting Up the client -
- Run
cd client
in separate terminal to change into client directory. - In client directory run
npm i
to install client-side dependencies. - In client directory run
touch .env
.
- Run
npm start
to start backend server. - Run
npm run client
to start frontend server. - Run
npm run test:watch
to start the test watchers to test if something breaks. - Navigate to http://localhost:3000 in the browser.
- First make an issue and then start working on it.
- Always make a separate branch in following format name-patch-#issueNo. Eg: aditya-patch-#62. (Words are separated by -).
- In the commit message do mention the issue no. Eg: fixes #1.
- Use proper code formatting. Run
npm run format
to make prettier format everything automagically. - Run
npm test
to check if nothing has broken. - Do mention if
npm install
is needed after merging the commit.
Note -
- Heroku Cli is used for handling environment variables and deploys.
- To get googleClientID and googleClientSecret make a new project at here and enable the Google+ api.
- To get facebookAppId and facebookAppSecret make a new app at here and add the facebook login product.
- If you don't have mongodb locally, then create a remote db here or you can download it from here
- Whenever you commit the code. Prettier runs and it formats the code. If any changes are made then do stage again and commit.
- Create-React-App (CRA)
- Webpack
- React
- Redux
- Node
- Express
- Mongodb / Mongoose
- Tape
- Prettier
- Heroku