Skip to content

Here is a draft of opensource crowdfunding platform for social activists, who do not want to be involved into obsolete corrupted parties, but are bright and willing for change:

License

rostag/bigpolicy_eu

Repository files navigation

BigPolicy

Opensource crowdfunding platform for social activists, who don't want to involve into obsolete corrupted parties, but are bright and willing for change.

Project appeared in Ukraine, when group of activists decides that Direct Democracy is the instrument of truly agile governments, ready to be open for challenges and react on them.

Our goals for this tool are

  • implement new culture in political landscape
  • implement it on local and government level

Idea was verified on EGAP Hackaton Challenge with support of bright experts and moving forward.

How to start your local development

Install Typescript and Angular CLI

This project was generated with Angular CLI and Typescript:

npm install -g typescript@next

npm install -g angular-cli

Install MongoDB

To develop locally, you need to MongoDB installation.

Nest Js server

  • Install packages: cd nestjsserver && npm i
  • Run docker-compose up - run mongo
  • Run server:start:dev to serve server in dev mode
  • Docs available on http://localhost:3001/docs/

Clone repository

git clone https://github.com/rostag/bigpolicy_eu.git <app_dir>

Install dependencies

npm install

Please note: you need at least npm 3.

Run local development server

Run MongoDB

mongod --dbpath data/db

Please note — path to database may be different on your machine. It's better to keep your DB files outside the source folder to avoid leaking DB files into project repository.

Windows notes Add mongodb to PATH run mongo server manually: a) go to default folder of mongo e.g.

C:\Program Files\MongoDB\Server\3.2\bin

and enter command:

mongod.exe --dbpath path_to_bin_mongo_folder

This will show waiting for connections message on the console output, which indicates that the mongod.exe process is running successfully.

Run Angular CLI Server

At this moment, you run both ng and node commands. ng watches and rebuilds, node serves as web + mongodb. Run ng to build, telling it to watch and rebuild sources:

npm run db

npm run server

Run node express app

npm run client

See your local BP

Visit localhost:5000 -- this is your local application.

After you edited and saved a file, the project is being rebuilt automatically. But you need to manually refresh the page in browser to see the changes (we'll fix it later)

Update: to debug FBase locally

npm install --save firebase-functions@latest firebase-admin npm install -g firebase-tools

To run functions locally, use firebase serve:

firebase serve --only functions,hosting --port 5000 # to emulate both functions and hosting

(as per https://firebase.google.com/docs/functions/local-emulator)

More on Angular CLI Development

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/route/class.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Further help

Use ng --help or go check out the Angular CLI README.

How to contribute?

Please see BigPolicy Contributing Doc(to be updated)

MIT license Dependency Status devDependency Status

License

MIT

About

Here is a draft of opensource crowdfunding platform for social activists, who do not want to be involved into obsolete corrupted parties, but are bright and willing for change:

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published