๐ฅ Create rooms for your events and monitor the crowd's excitement with Heat ๐ฅ
Practical project for study
Are you going to organize an event and want to stimulate the crowd's excitement? Just create a room in Heat!
Create a custom room for your event and make the code available to everyone and you're done.
With the code, anyone can enter the room and say what's waiting for your event.
New screens in mobile app to support new backend features
- Installing Git: You need to have Git on your machine to perform a few steps. To download Git, click here.
- Installing Node: To run the server you will need Node.js, to download it, click here.
- Installing Expo: To run the mobile, you need to install the Expo, click here.
- Installing Yarn 1: Yarn is a package manager that you can download directly from the website by clicking here. If you prefer, use the NPM.
- Code Editor (optional): Make sure you have a code editor of your choice. I recommend using the VS Code. If you need to, download it here.
- In a terminal, clone this repository:
git clone https://github.com/Silvio-Ronaldo/Heat.git
- Enter the project folder:
cd Heat
- Enter the server folder:
cd heat-api
- Install all dependencies:
yarn install
oryarn
- Start the SQLite database with all migrations using Prisma:
yarn prisma migrate dev
- Start the development server:
yarn dev
- After these steps, the server should start at the 3333 port.
- If you have already cloned the repository, open in another terminal window, otherwise, see first step in 'Running the backend server'.
- Enter the project folder:
cd Heat
- Enter the web folder:
cd heat-web
- Install all dependencies:
yarn install
oryarn
- Start the web development server:
yarn dev
- After these steps, the server should start at the 3000 port, open the browser and access http://localhost:3000.
- With the Expo installed, according to the documentation, follow. Otherwise, see first step in 'Running the backend server'.
- Enter the project folder:
cd Heat
- Enter the mobile folder:
cd heat-app
- Install all dependencies:
yarn install
oryarn
- Start the mobile development server:
yarn start
- After these steps, the mobile application must start on your emulator or on your device, according to your choice.
- To login with Github, you need to create an OAuth App. To do this, click on your user's avatar in the upper-right corner.
- Select Settings. Then, in the left menu click on Developer Settings.
- Click on OAuth Apps and create a new app.
- Enter the name and description you want.
- In Homepage URL, type: http://localhost:3333
- In Authorization Callback URL, type: http://localhost:3000/loading
- That's it, you've set up an OAuth App.
- IMPORTANT: Go to the heat-web directory and within src/contexts/auth.tsx replace the constant value of GITHUB_CLIENT_ID with the Client ID value of your newly created OAuth App.
- IMPORTANT: Go to the heat-api directory and enter the .env.example file. Rename the file to .env
- IMPORTANT: Add your OAuth App's Client ID and Client Secret credentials to GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET, respectively.
- IMPORTANT: Go to a hash generator site like MD5 for example and generate a random hash. Add the hash to JWT_SECRET.
The main tools used in the development of the Heat:
Silvio Ronaldo ๐ |
Leave your star, fork the project or open a pull request โค๏ธ
Contact me on social networks:
Heat is MIT licensed, as found in the LICENSE file.