Skip to content

vicrafsim/project-3-server

Repository files navigation

Project 3: Full Stack Web App

This is the initial setup for project 3.

Fork this repository to your org account, then clone it to your local machine. The rest of the team will clone the forked repository to their local machines as well.

Setup dotenv

Once you have cloned the repository, create a .env file in the root of the project. Add the following to the .env with your infomration:

PORT=5005
ORIGIN=http://localhost:5173
TOKEN_SECRET=whateverYourSecretIs
MONGODB_URI=mongodb+srv://yourMongoDBURI

By default the port is set to 5005, but you can change it to whatever you want. Just make sure that you change it in the frontend as well (fetch or axios calls). The origin is set to http://localhost:5173 which is the port that the react app will run on with vite. Once deployed, you will need to change this to the domain of your deployed app.

Remember to update this readme file with your project description and routes.

Routes table example

Method Path Description
GET /users Sends back an array of all the users
GET /users/:id Sends back a single user object
POST /users Creates a new user

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •