Skip to content

Arpitgoyalgg/chat-nextjs-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat-nextjs-backend

This is the backend code repository for nextjs-chat project.

Routes

  • index.js contains code for basic intro and home page of backend.
  • users.js contains code to look for any data related to users or perform several operations on the users details and database.
  • data.js contains code to look for any data except users.
  • socketApi.js contains code for socket logic(chat).

Installation and Development

  • Clone this repository and cd in it.

  • npm install would install all the dependencies.

  • create a .env file with the following line in it.

    CLIENT_URL=http://localhost:3000 Here http://localhost:3000 is the client server address. Check that project out here.

  • npm start or nodemon start(if you have nodemon installed) would start the server.

About

Backend of chat-nextjs project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published