Warning: although this project has some basics security such as hashed user password and others, this project is NOT secure enough in production. (Contribute to this project by making a pull request will be appreciated)
How to run:
-
Clone this repository or fork it.
git clone https://github.com/kimlimjustin/socialapp.git
orgit clone https://github.com/<your username>/socialapp.git
-
Inside
server
directory, create a new file called.env
which stores your ATLAS_URI information Example:ATLAS_URI =mongodb srv://admin:<password>@cluster0.8aezk.gcp.mongodb.net/socialapp?retryWrites=true&w=majority
-
Inside
client
directory, create a new file called.env
which stores your server url information insideREACT_APP_BACKEND_URL
variable Example:REACT_APP_BACKEND_URL = http://localhost:5000
-
install all dependencies.
- Client side:
on the
client
directory typenpm install
- Server side:
on the
server
directory typenpm install
- Client side:
on the
-
Run it on node js:
- Client side:
on the
client
directory typenpm start
- Server side:
on the
server
directory typenpm start
- Client side:
on the