Week 14 Group Project with Shareef Evans, Henry Agustin and Lachlan Miles. Building a Full Stack Crypto Application: CryptoLab is a full-stack web application designed for cryptocurrency enthusiasts to stay updated on the latest trends, monitor the performance of their favorite coins, and securely manage their accounts. By integrating real-time updates with a clean, intuitive interface, CryptoLab empowers users to make informed decisions about their cryptocurrency portfolios. The platform is scalable, responsive, and built with modern web technologies, ensuring a seamless experience on both desktop and mobile devices.
- Project Description
- Features
- Technologies Used
- Installation
- Usage
- Database Seeding
- Project Structure
- Future Enhancements
- Contributing
- License
Cryptocurrencies have become an integral part of the financial world, but staying updated with the latest information can be overwhelming. CryptoLab simplifies this by providing:
- Real-Time Data: Get updates on the latest prices, trends, and performance of various cryptocurrencies.
- User Customization: Save your favorite coins for quick access and personalized tracking.
- Secure Authentication: Log in to manage your portfolio with confidence, knowing your data is protected.
CryptoLab aims to bridge the gap between complexity and usability, offering both novice and experienced users a platform to engage with the cryptocurrency market effortlessly.
-
Secure Authentication:
- User login with password hashing for security.
- Role-based access (e.g., admin, standard user).
-
Real-Time Updates:
- View live updates and performance metrics for various coins.
-
Favorites Management:
- Save, update, and manage a list of favorite cryptocurrencies.
-
Mobile-Responsive Design:
- Accessible on desktops, tablets, and smartphones.
-
Modular Architecture:
- Designed for scalability with separate front-end and back-end systems.
- React (with TypeScript)
- Vite for build optimization
- Axios for API calls
- Bootstrap for styling and responsiveness
- Node.js with Express.js
- Sequelize ORM for database interaction
- PostgreSQL as the database
- bcrypt for password hashing
Follow these steps to set up the project locally:
- Clone the repository
git clone https://github.com/lachieMiles/cryptoLab- Navigate to the project directory
cd cryptolab- Install dependencies
cd client && npm install
cd ../server && npm install- Set up the environment variables Create a .env file in the server folder with the following
DB_NAME='cryptolab_db'
DB_USER='postgres'
DB_PASSWORD='password' //your postgres password
JWT_SECRET_KEY='your_secret_key'- Create DB and Seed Create a DB folder in your postgres and seed the table (root)
For Database: open DB folder in server then bash
psql -U postgresfollow the prompt and just type
\i schema.sqlserver folder:
npm i
npm run build
npm run seed- Run the development servers
- To start deploying go to Development folder
npm i
npm run start:dev- Open the app in your browser at http://localhost:3001.
- Register or log in to the application using secure authentication.
- Browse a live feed of cryptocurrency updates to monitor trends.
- Save your favorite coins for easy access.
To populate the database with default users for login functionality:
- Ensure the database is properly configured and running.
- Run the seeding script:
npm run seed- Default login credentials:
- User: Shareef Evans Password: password
- User: Henry Agustin Password: password
- User: Lachlan Miles Password: password
cryptolab/
├── client/ # Front-end application
│ ├── src/ # Source code for React
│ ├── public/ # Static assets
│ └── dist/ # Build output
├── server/ # Back-end application
│ ├── src/
│ │ ├── models/ # Sequelize models
│ │ ├── routes/ # API routes
│ │ ├── seeds/ # Database seeders
│ │ └── controllers/ # Business logic
├── package.json # Root-level configuration
└── README.md # Project documentation-
WebSocket Integration:
- Enable real-time updates for coin performance.
-
Alert Notifications
- Notify users of significant price changes or trends.
-
Advanced Filtering:
- Add sorting, filtering, and categorization of coin data.
-
Multi-Language Support:
- Translate the application to support global users.
Contributions are welcome! Please follow these steps:
-
Fork the repository.
-
Create a new branch
git checkout -b feature-name -
Commit changes and open a pull request.
This project is licensed under the MIT License.
MIT License
Copyright (c) 2024 Henry Agustin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.