Developed by Clint Baker
This is an app developed to keep track of all of your relationships. Relationship management for personal use!
- Auth occurs through the authRouter.ts
- Sign up for an account and sign in
- We're using a local SQLite database
SCHEMA
- User
- Connection
- Starter
npm install
npm run dev
Make sure your .env file contains the following:
NODE_ENV="dev"
DATABASE_URL="file:./dev.db"
JWT_SECRET="jwt secret"
Deploy to Render. Make sure to build first.
DATABASE_URL=[production db url]
JWT_SECRET=[production secret]
GET /api/connection
GET /api/connection/:connectionId
POST /api/connection
PUT /api/connection/:connectionId
DELETE /api/connection/:connectionId
GET /api/connection
- bearer token for auth
GET /api/connection/:connectionId
- bearer token for auth
POST /api/connection
- bearer token for auth
- req.body contains fields
- fields include:
- name (required), company, position, notes, phone, email, location, relationship, tags, lastContact, priority, birthday
PUT /api/connection/:connectionId
- bearer token for auth
- req.body contains fields to be updated
DELETE /api/connection/:connectionId
- bearer token for auth
GET /api/connection/:connectionId/starters
POST /api/connection/:connectionId/starters
PUT /api/connection/:connectionId/starters/:starterId
DELETE /api/connection/:connectionId/starters/:starterId
GET /api/connection/:connectionId/starters
- bearer token for auth
- :connectionId for the connection with which you want to grab related starters
POST /api/connection/:connectionId/starters
- bearer token for auth
- req.body contains fields
- fields include: title (required), description
PUT /api/connection/:connectionId/starters/:starterId
- bearer token for auth
- req.body contains fields to be updated
PUT /api/connection/:connectionId/starters/:starterId
- bearer token for auth
- ts-node: in order to run typescript files
- typescript: for development in ts
- prisma: interact with database (ORM)
- express: to handle server routing
- morgan: for logging
- chalk: command line styling
- dotenv: import env variables
- brcypt: hashing passwords
- express-jwt: middleware for web tokens
- jsonwebtoken: generate tokens
-
Build out front end interface
- Build user dashboard - Show user's connections - Create interface to add / edit / delete connections - Create individual connection page or modal - Add messaging / error / success