Did you know it's my first time using the first four things mentioned below? It was fun learning them!
I'll be explaining how you can start it up locally for now.
node
version16.x
mongodb
ormongo atlas
version^4.x
In case you want to use mongo atlas, skip the mongo section below and update MONGO_URL in project_root/server/.env instead.
git clone https://github.com/m-s-abeer/kata-golla.git
cd kata-golla
cp client/env.example client/.env
cp server/env.example client/.env
mongo
use kata-golla
exit
docker build -t kata-golla .
docker run -d --name="kata-golla-3001" -p 3001:3001 kata-golla
- Ready to go! Checkout
http://localhost:3001/
and start playing! (you may change port 3001 if required) - The react client is served as a static build and it's routed from node server.
- To stop the docker container run
docker stop kata-golla-3001
Here we'll use stand-alone React and Node server. Just for the !fun of it! ⚆ _ ⚆
-
Clone the repo locally:-
HTTPS:
git clone https://github.com/m-s-abeer/kata-golla.git
-
Create a local mongo database from mongo CLI
mongo use kata-golla exit
You can use a mongo atlas cluster as well, in that case update MONGO_URL in project_root/server/.env later on
-
Get into project root
cd kata-golla
-
Install client-side NPM packages and start front-end
relative to project root
cd client npm install cp env.example ./.env npm start
-
Install server-side NPM packages and start back-end
relative to project root
cd server npm install cp env.example ./.env npm start
- Ready to go! Checkout
http://localhost:3000/
and start playing!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Mahmud Sajjad Abeer