This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.
To setup Frontend for local development go through the each step that mentioned below:
- Install all dependencies that are neccessary to run this application.
- Install appwrite on your system from https://appwrite.io/.
- then set your appwrite's local domain name in 'endpoint' variable of src/utils/config.js file.
- Create a project by going through the localhost:port in your appwrite locally.
- and Get a project Id and save it to 'project' of src/utils/config.js.
- and create few database collections in your appwrite by going through the localhost:port. collections must look like as shown below
- Put collection ID of UsersInfo collection in 'collectionID' of src/utils/config.js.
- and also put collection ID of Dev-Credential in 'devCredential' of src/utils/config.js.
- and at the last run
npm start
in the root folder.
Here Frontend setup has finished but you might be thinking that there are some extra variables in src/utils/config.js for that I want say don't worry about them I created those variables for just testing purpose , Now let's go through Backend setup:
- save ports numbers in 'FrontEndPort' and 'BackEndPort' of /express-server/config/keys.js for frontend port and backend port.
- and also save entire URL of frontend and backend with port numbers in 'FrontEndPoint' and in 'APIsEndpoint' of /express-server/config/keys.js
- and at the end run
node ./index.js
in express-server repository.
Now Backend setup has finished, but stop something is remaining to setup that's ClientId and ClientSecret in /express-server/config/keys.js
- To get ClientId and ClientSecret you will have to create an account with Twitter Developer API :- https://developer.twitter.com/en/portal/petition/essential/basic-info
- after getting Client Id and Client Secret from Twitter save it to 'ClientId' and 'ClientSecret' of /express-server/config/keys.js.
- and also save redirect-URL in /express-server/index.js on line number 30 for 'callback' variable. redirect URL is that you saved for Twitter App while creating an App for Twitter project in Twitter Developer API account.
- syntax to save redirect URL for this application in Twitter Developer API account must be :-> locahost:BackEndPort/twitterCallback.
Here are some images and videos for demo of InfoAbout Application.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.