Delegated is app that allow users to track their buisness trips, calculate per diem and watch trips on world map. App has been succesfully deployed to fly.io.
front-end: Vite (React + Javascript), styled-components
back-end: Node (nodemon, bcrypt, jsonwebtoken), Express, MongoDB (mongoose)
tests: Jest, supertest
Install delegated with npm
git clone https://github.com/kchn9/delegated.git
cd delegated/frontend
npm i
cd ..
npm i
Create .env file in root folder:
touch .env
(example)
PORT=8080
MONGODB_URI=mongodb+srv://<username>:<password>@cluster0.aa0okx6.mongodb.net/delegations?retryWrites=true&w=majority
TEST_MONGODB_URI=mongodb+srv://<username>:<password>@cluster0.aa0okx6.mongodb.net/?retryWrites=true&w=majority
JWT_KEY=examplekey
Then simply run dev:
npm run dev