https://github.com/adityagpramanik/twitter-clone
Twitter clone with React-JS framework, Express-JS for Rest API and Node-JS.
https://github.com/adityagpramanik/twitter-clone
express-js node-js psql-database reactjs rest-api
Last synced: 3 months ago
JSON representation
Twitter clone with React-JS framework, Express-JS for Rest API and Node-JS.
- Host: GitHub
- URL: https://github.com/adityagpramanik/twitter-clone
- Owner: adityagpramanik
- Created: 2022-01-29T09:53:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-15T16:39:41.000Z (about 4 years ago)
- Last Synced: 2025-01-02T00:10:12.862Z (over 1 year ago)
- Topics: express-js, node-js, psql-database, reactjs, rest-api
- Language: JavaScript
- Homepage:
- Size: 293 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Twitter Clone
## Steps to run the project
### 1. Setting up the server
**==> */server is the backend folder***, backend is developed using Node Js with help of various libraries such as Express.JS, bcrypt etc.
1. open terminal in the folder server and run the following command to install all dependencies:
`npm i`
2. download and install *PostgreSQL(psql)*, while configuring it create and write down the password for admin and **postgres user**.
3. create **.env** file in 'server/' with following entries
```
DB_KEY=
JWT_SECRET=
```
Try installing CLI of the psql for easy configuration, but GUI will also do the work.
4. All set, now you can start server:
`npm run dev`
### 2. Setting up the frontend
**==> */twitter is the frontend folder***, frontend is developed using React Framework.
***/twitter/public*** is the build folder which need not to be explicitly changed
***/twitter/src*** contains frontend source code which includes index.js, app.js, components and supporting files.
1. install all the dependencies by running the following command:
`npm i`
2. run the live preview of the frontend using:
`npm run test`