A portal all about competitive programming and problem solving.
You can visit the site cpps.bacsbd.org to view the project.
The site has two parts: notebook and gateway.
In notebook, you will find theoretical resources about CPPS. In gateway, you will find categorized problems with hints for practice.
- Fork the project.
- Clone the project into your workstation.
- Install docker and docker-compose.
- Enter the following command to start docker containers:
./deploy.sh -t prod
- In order to run the project, you need project specific secret values. In the project root, create a file named
server/secret.js
and enter the following infos:module.exports = { secret: "Your-secret-key", //Used to encrypt passwords and session dburl: "mongodb://cpps_db_1:27017/cpps", mailApi: "secret-mail-api-key", //Needs to be mailgun api recaptcha: { //Get your own recaptcha site & secret key. Use localhost as domain to run in locally. site: "Your-own-recaptcha-site-key", secret: "Your-own-recaptcha-secret-key" } }
- Next simply run the command
./deploy.sh -t dev
to start dev server. If required, please give the deploy script run permission. - View the site in
localhost:3000
.
A script called deploy
is available for use. Using this script, we can control the site in following manners:
- Starting Production Server:
./deploy.sh -t prod
for starting production server. - Starting Dev Server:
./deploy.sh -t dev
, which runs on port 3000. - Changing port:
./deploy -t dev -p 8000
. By default port 80 is used. - MongoDB shell:
./deploy -t mongo
- MongoDB GUI:
./deploy -t mongo-express