📖 Table of Contents
UrMess@ges is a message interface project based on Next.js + Jest create-next app starter example. This interface displays and allow to send messages. See more info in section about the way it works so far
In your terminal:
yarn install
In your terminal:
yarn run dev
In your terminal:
npm run test
-
🔹FEATURES:
- Display messages
- Send Public or Private message in dedicated feeds
- Create a thread from a Public or Private Message
- Connect / Disconnect from a specific userId (NB: UI Matter only)
-
🔹FAKE DATABASE:
- The
fake database
is initialized withjson
files in./src/fakeServerData
- The session of the project uses an instance of a
fake database
based on data coming fromjson files
. ✏️ NB : On starting or refreshing the project the instance of database is reset to default one.
- The
-
🔹API:
- It uses the built in Next.js dynamic API routes functionality. So the
API
possibilities are located in directory./src/pages/api
- It allows to
POST
andGET
messages by type (private or public) - It allows to
GET
a specific message andPOST
messages related as athread
- It uses the built in Next.js dynamic API routes functionality. So the
-
🔹AUTHENTICATION:
- The connection functionality is linked to a specific userId.
- API: connection part is built for example purpose of the UI when connected or disconnected and the behavior on protected pages.
- API: There is no check for userId requesting nor cookie so far. NB: Refreshing the app disconnect the user.
-
🔹PROTECTED COMPONENT / PAGES
- Private type of page or related components are protected, meaning you can't reach them if you are not connected.