The repository contains:
- Distributed code from eCentennial.
/.devcontainer
: Configuration file used by Codespaces to determine operating system./.vscode
: Configuration file used by Codespaces to configure Visual Studio Code settings./client/.eslintrc
: Settings for ESLint included for code consistency and quality./client/.prettierrc
: Settings for Prettier used to format code.package.json
andyarn.lock
: Defines the application information for Node.js, dependent packages, and the versions needed for each.
Select Open in GitHub Codespaces and then Create codespace. GitHub will prepare the development environment with all installed dependencies.
Reference the example provided client/.env.example
to create client/.env
.
MONGODB_URI=mongodb+srv://your_user:your_password@your_cluster.mongodb.net/YourDatabase?retryWrites=true&w=majority&appName=YourApp/yourcollection
After setting up the environment variables, change directory to client
and start the server.
cd client
yarn dev
Navigate to http://localhost:5173/
to register an account and sign in to add shops.