- NodeJs
- Go to MongoDB Atlas and log in. Then, create a cluster and connect it. An url will be provided by MongoDB. Save it somewhere as we will need it shortly.
- Create a .env file in the project directory and name it ".env". Paste the following code in it.
DB_URL='XXXXXXXXXX' JWT_SECRET='secret'
- Replace the XXXXXXXXXX in DB_URL with the link obtained in step 1. Now, follow the below steps to run it.
npm i
node app.js
~command on git bash.
- You are first asked to log in to your account.
- If you don't have an account, click on register and make one. Otherwise, log in with your credentials (Username is your email id).
- Once logged in, you are navigated to the dashboard. The dashboard contains a graph of the energy used by the user in the year (sampled on a monthly basis).
- The dashboard also contains a leaderboard of registered users and their energy consumption.
- Blog: The blog is for sharing posts and can be accessed through the navbar on the top. Posts may be composed using the compose link in navbar.
- Home: An introductory page that contains information about the website.
- Achievements: Lists the badges obtained by the user by fulfilling the energy conservation criterias.
- Signout: Signs a user out of the active session.
The website is currently incomplete and has a lot of oppurtuinities for contribution and you may use this project to get started with open source contributions as such.
The issues listed below are provided along with their difficulty levels so you may pick them accordingly.
- Create an Issue and wait for being assigned to it. (I shall be assigning them about twice a day)
- Fork the repository.
- Make changes and commits on the forked repository
- Create a pull request to the master branch of the original repository
- Valid pull requests will be merged
- Fixing routes based errors (3)
- Fixing the deprecation warning of body parser at app.js(3)
- Making the webpage responsive (one page per PR) (2)
- Adding database connectivity and looking in the database for valid credentials while logging in (5)
- Typos fixing and content enhancements (2)
- Enhancing the home page, making it the landing page (4)
- Enhance UI of login screen
- For any other enhancements, open the issue and I shall assign it if it is appropriate.
PS: For the issues that I have opened already, comment in the issue to let me know if you are taking it up. (like by commenting 'I would like to take this up')
For any queries, contact me at [email protected]
-------------------------------------------------------------------------------