Award voting app.
Written in Typescript at frontend and backend. Server part is nodejs and uses Express http server. Frontend is run at React.
- build app:
npm run build
- start in dev watch mode:
npm run dev
- start:
npm run start
- build for prod:
npm run build
- linting:
npm run lint
- see storybook:
npm run storybook
dist
directory contains all files needed for server hosting. Server requires nodejs hosting environment.- to change mongodb location you need specify it in
.env
file and rebuild app.
App is temporary run at Heroku. It is safe to host also on unsecured http server as admin authorisation uses RSA encryption.
- app url
https://kudoness.herokuapp.com/event/<eventHash>
(e.g. 5e5f619ff1a4fe47ed6bea33) - admin url
https://kudoness.herokuapp.com/admin.html
- DB url
mongodb+srv://<login>:<password>@cluster0-8sxhu.mongodb.net
- build & start server
- local app
http://localhost:3000/event/<eventHash>
(e.g. 5e67e7131831dec064112d4d) - local admin:
http://localhost:3000/admin.html
default credentials are:admin / admin
brew tap mongodb/brew
brew install mongodb-community@4.2
brew services start mongodb-community@4.2
Best is to use MongoDB Compass app.
Connect to localhost:27017
mongodb://localhost:27017/
mongodb://localhost:27017/test?readPreference=primary&appname=MongoDB%20Compass&ssl=false