In-browser IDE for running, collaborating, saving and sharing code snippets.
In-browser IDE for running, collaborating, saving and sharing code snippets.
β οΈ Website isn't mobile friendly and for best experience use Google Chrome.
Before running app locally make sure that you install following things:
DATABASE_URI
https://github.com/adarshaacharya/CodeTreats.git
Install both client and server dependencies
# Install dependencies for server
$ npm install
# Install dependencies for client
$ npm run client:install
Create .env
file in project root dir
$ touch .env
Copy everything from .env.example
as paste it in .env
Go to Glot signup page and create new account.
Then go to this page and copy & paste token in GLOT_TOKEN = <YOUR_TOKEN_HERE>
in .env
file.
Now you can run the application by :
# Run the client & server with concurrently (for running full application)
$ npm run dev
# Run the Express server only
$ npm run server
# Run the React client only
$ npm run client
# Server runs on http://localhost:5000 and client on http://localhost:3000
There is a Heroku post build script so that you do not have to compile your React frontend manually, it is done on the server. Simply push to Heroku and it will build and load the client index.html page
Contributions, issues and feature requests are welcome. After cloning & setting up project locally, you can just submit a PR to this repo and it will be deployed once it's accepted.
β οΈ Note - Commit & PR Title :
Itβs good to have descriptive commit messages so that other folks can make sense of what your commit is doing.
This project uses Husky prevent bad git commit
, git push
and more πΆ _woof!
Read conventional commits before making the commit message.
Give a βοΈ if you like the project!
Copyright Β© 2020 Aadarsha Acharya.
This project is MIT licensed.