// Set the configuration settings
const credentials = {
client: {
id: 'Bc9am2voec_NAvfJA8KmpiZ0qAca',
secret: 'hD3_9rDl6Khkb6uYd7vKmnc9ThYa'
},
auth: {
tokenHost: 'https://apim-gateway.ecdev.opensource.lk/',
tokenPath: 'token',
authorizeHost: 'https://apim-gateway.ecdev.opensource.lk/',
authorizePath: 'authorize'
}
};
const tabulationConfig = {
serverRedirectUri: 'http://localhost:3001/tabulation/auth/callback',
clientRedirectUri: 'http://localhost:3000',
isBaseUrl: 'https://apim-gateway.ecdev.opensource.lk/',
}
const tabulationCredentials = {
client: {
id: 'mJR3BTRiX3VbqAMxDHDDywaOaQQa',
secret: 'GDhO_0xe3rgL4IZhiusZyZfz9eEa'
},
auth: credentials.auth
};
--
You received this message because you are subscribed to the Google Groups "LSF-Elections" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lsf-election...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lsf-elections/fe87d2ec-01b2-45e2-8b53-5a0255a9ab82%40googlegroups.com.
Hi Dinuka,Thank you for guiding me through this. The login screen appears now.Is there a username & password that I can use to get passed the login screen?Regards,Dinuka.
Hi Dinuka,So, I created the virtual env and installed the requirements for the API.According to the readme [1] I'm supposed to update the database connection parameters. Are there any parameters that I can use for this?
Then, there're 3 export statements create, upgrade DB and run local server. Can I know in which files exactly those export statements are?
Regards,Dinuka.On Fri, Jun 5, 2020 at 8:35 PM Dinuka de Silva <din...@opensource.lk> wrote:
On Fri, Jun 5, 2020 at 7:31 PM Dinuka Piyadigama <drpiya...@gmail.com> wrote:
Hi Dinuka,I tried signing-in using the static user, but it gives an unknown error. I've attached a screenshot below.I haven't really worked with Flask. Is it necessary to get the API running as well to view the frontend functionalities?Yes. the api is need to be running locally [6]I ran the auth-app in the background as well.
Would be great if I could figure out how to identify how the frontend functionalities work, in order to work towards fixing the issues posted on GitHub.Regards,
Dinuka.
On Wed, Jun 3, 2020 at 3:44 PM Dinuka de Silva <din...@opensource.lk> wrote:
Hi Dinuka,
After creating an election, you could get the root-token for that election [5] and put it in the front end application [3]. Also, you could edit the token privileges by opening the root-token in a jwt editor [4].And the local setup will be redirected to login which is redirected back to the front end with the token. But, since the local setup above is not going through that, you can actually login from any user but everything will be according to the token passed on the front end [3].One static user available on dev is (dinuka/dinuka). You could use this.On an additional note. Do not forget to copy the mailing list when you post or reply to a question unless it has any sensitive information. Open communication is always important. 😊References
Hi Dinuka,What I realized is that I need to have a database for an election in order to show the available options in the frontend.
app.config.from_envvar('ENV_CONFIG')I can't seem to find a place to define the ENV_CONFIG to the env/dev.cfg file.
Can I know where I'm supposed to run the following export statements?I get the database create/ migrate/ upgrade thing. What's not clear is how I can export those env files. Even in the Docker file, it's just given as,RUN export ENV_CONFIG=./env/dev.cfg
RUN python manage.py db upgrade; exit 0This doesn't seem to work in the command line. Is there an OS concern for this?
Regards,
Dinuka.
You received this message because you are subscribed to the Google Groups "LSF Volunteer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to volunteer+...@opensource.lk.
[Error] 1001
No valid user role found.
/election
and stuff as well as mentioned in the readme [2] for this to work? Or is there anything else that I'm missing?[Error] 1001
No valid user role found.
/election
and stuff as well as mentioned in the readme [2] for this to work? Or is there anything else that I'm missing?Hi Dinuka,
Happy to let you know that I managed to get the project up and running! Thank you for guiding me through the setup process.I'll update the documentation with the project setting-up instructions for Windows for a start.I feel like I can help a lot with improving the frontend here.
It'll be good if I can be given any instructions or mock-ups of any requirements. I'll get started with working on tasks that address issues of the project mentioned on GitHub.Eager to start contributing here! 😄The tests in the backend printed some errors though. I'm guessing that you're aware of that already.