Skip to content

Conversation

@ribshow
Copy link

@ribshow ribshow commented Dec 15, 2024

The API docs is available at the following address:

https://backend-wiredcraft.vercel.app/api/docs/

Cloning project

git clone https://github.com/ribshow/backend-wiredcraft

Install dependencies

npm install

Remove comment on .env

NODE_ENV_TEST="test"

In the server.ts comment on the lines 76 to 81:

/*
app.listen(port, () => {
  console.log(`Server is running on ${port}`);
});
*/
//module.exports = app;

Build the project

npm run build

Run the tests

npm test

Included routes and set connection with database mongodb
Json web token included to authenticate users
Logout included to users
Included the endpoint to user to change your password
Profile included to users, is possible to send friendship invite and accept invite
Included the endpoint to verify the distance between user and your friends
Included initial tests with jest
New tests includeds to user profile
Finishing tests in endpoint profile/nearby
Included documentation to api, available in localhost:3000/api/docs
Included vercel.json to deploy api in vencer
version 2
update vercel.json
Deploy complete to vercel
Fix endpoint auth/register
New end-point, /save-location/id, in this endpoint the user's location is fetched through their ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant