Dashboard to customize 2PG; made with TypeScript + Angular 9 -> https://2pg.xyz
2PG Bot Series - https://www.youtube.com/watch?v=rYpR0CiEGgk&list=PLGfT2ttRbfixMStpAhPD4pKBQN9wjJmbP&index=1
2PG Dashboard Series - https://www.youtube.com/watch?v=rYpR0CiEGgk&list=PLGfT2ttRbfizIr60zU_S_6_i8O3xmP9ia&index=1
Used by: 2PG, 3PG, 6PG, DBots, DList, DClone
- Know how to use JavaScript, TypeScript, and Angular 9
If you change your redirects, regen your application secret.
- Channels and roles are publically available through the API
- Used to provide more user-friendly select options
- This is to also to avoid rate limiting
- Everything within the /src folder is public
- Keep the API, Server, and bot isolated to avoid extra bundle size, or your bot tokens being bundled on the client side (not good)
- Just avoid associating any tokens or secrets with the webapp itself
- This also applies to the bot
- If renaming config files, make sure to .gitignore them
- This is done by default, but I've made this mistake many times
Use npm install && npm install -g @angular/cli@latest
for the installation
This project was generated with Angular CLI version 9.0.3.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.