This is the official repository of codedamn.com, i.e. the contents you see on codedamn.com are directly fetched from the master branch of this repo. Feel free to contribute! We appreciate contributions from the community!
codedamn is built on the top of Node v8.9, Express Framework, MongoDB, Mongoose and TypeScript
- Fork this repo
- Run
git clone https://github.com/<YOUR_NICK>/codedamn.com - Run the following commands on the terminal
For Ubuntu/Mac users
export codedamn_cookieSecret=SOME_RANDOM_STRING // you can generate your own key as well. Generate here: https://www.google.com/recaptcha/admin#list
export codedamn_reCAPTCHAsecret=SOME_RANDOM_KEY // any string would work
export codedamn_captchSiteKey=6Lel8U8UAAAAAPZlTTEo6LRv2H59m-uNcuJQudAX
For Windows users
set codedamn_cookieSecret=SOME_RANDOM_STRING // you can generate your own key as well. Generate here: https://www.google.com/recaptcha/admin#list
set codedamn_reCAPTCHAsecret=SOME_RANDOM_KEY // any string would work
set codedamn_captchSiteKey=6Lel8U8UAAAAAPZlTTEo6LRv2H59m-uNcuJQudAX
- Run
npm iin the folder - This project uses
debugmodule. To show all debug messages, in your terminal, write:export DEBUG="cd:*"and hit enter. - Install typescript by writing these 2 lines in your terminal:
npm i -g typescript
npm i -g ts-node
- Make sure to start your mongodb server by writing
sudo mongodin your terminal if your mongodb server is not running. (Check by writingmongoin terminal, if you get mongo shell, then your mongodb is running) - I recommend using Robo3T Mongo Client for GUI working with DB.
- Once everything is done, run
nodemoncommand which will pick up configs from suppliednodemon.jsonandtsconfig.jsonfiles and setup live reloading for.tscode.
- The site uses TypeScript to enforce proper JavaScript code. Give it a look if you need an intro to TypeScript
- Please make sure your pull request is compatible with the flow and code structure of the overall site.
- Use tabs and not spaces :)
- Use curly brace on the same line like
function damnit() {:)
Please check the issues tab for available issues you can work on and be a contributor to codedamn.com!
Cheers!
</>